Skip to content

Commit

Permalink
修复封装state时忘记修改html导致的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanKaKa committed Oct 18, 2024
1 parent f729a5b commit 01f9ba1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/setting/system/system.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class="thing-cell"
v-for="item in typeTabList"
:key="item.key"
:class="{ 'thing-cell-on': type === item.key }"
:class="{ 'thing-cell-on': state.type === item.key }"
@click="switchType(item)"
>
<template #header>{{ item.name }}</template>
Expand All @@ -16,10 +16,10 @@
</n-card>
</n-grid-item>
<n-grid-item span="18">
<n-card :bordered="false" size="small" :title="typeTitle" class="proCard">
<BasicSetting v-if="type === 1" />
<RevealSetting v-if="type === 2" />
<EmailSetting v-if="type === 3" />
<n-card :bordered="false" size="small" :title="state.typeTitle" class="proCard">
<BasicSetting v-if="state.type === 1" />
<RevealSetting v-if="state.type === 2" />
<EmailSetting v-if="state.type === 3" />
</n-card>
</n-grid-item>
</n-grid>
Expand Down

0 comments on commit 01f9ba1

Please sign in to comment.