fix: 解决进入网站编辑没有刷新页面的BUG

pull/146/head
zhengkunwang223 2023-02-16 17:11:16 +08:00 committed by zhengkunwang223
parent 806ec557a7
commit 3a7cd173e6
1 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,7 @@
<template>
<!-- <div style="border: 1px solid #6495ed"> -->
<el-tabs tab-position="left" v-model="tabIndex">
<el-tab-pane :label="$t('website.domainConfig')">
<Doamin :id="id" v-if="tabIndex == '0'"></Doamin>
<Doamin :key="id" :id="id" v-if="tabIndex == '0'"></Doamin>
</el-tab-pane>
<el-tab-pane :label="$t('website.sitePath')">
<SitePath :id="id" v-if="tabIndex == '1'"></SitePath>
@ -20,7 +19,6 @@
<Other :id="id" v-if="tabIndex == '5'"></Other>
</el-tab-pane>
</el-tabs>
<!-- </div> -->
</template>
<script lang="ts" setup name="Basic">
@ -36,7 +34,7 @@ import SitePath from './site-folder/index.vue';
const props = defineProps({
id: {
type: Number,
default: 0,
default: -1,
},
});