no message
Former-commit-id: 7e513c97c26d9754d8fab64646a50753f1df1118 [formerly 7e513c97c26d9754d8fab64646a50753f1df1118 [formerly 7e513c97c26d9754d8fab64646a50753f1df1118 [formerly 7e513c97c26d9754d8fab64646a50753f1df1118 [formerly 91f532a5047318dde852fe3f7e10003864d7e307 [formerly d95550e0ac8a0e3fe4c0448fe1a1a8f586dc6275]]]]] Former-commit-id: aafabf8fa36964b37a9a472984e87933ebad3307 Former-commit-id: a8dcc0f4537b58d4b9af80a985b207bb4efa5a56 Former-commit-id: f6948f3d96dccd591e2c2808639b1da0c88e437c [formerly 66eb59c5bb2af93413d3861dc5a12409fea8593d] Former-commit-id: 944c9c17f21323650b4a0375154588114c36a8f8 Former-commit-id: 146eaee14c4bd335ff951c7f279cd9db86786174 Former-commit-id: 6cf031e20f126b0a1ce11ac51a30733b6bd1d6e7 Former-commit-id: 3af837919e5be12eac163cb1f6401737a4cc51f9 Former-commit-id: 56e92dc22a2c9f33efba8af0dd2d5546b01c847f
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="address" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="themeName === scope.row.value" type="success" icon="el-icon-check" round>已激活</el-button>
|
||||
<el-button v-if="themeActive.value === scope.row.value" type="success" icon="el-icon-check" round>已激活</el-button>
|
||||
<el-button v-else round @click="handleSelectTheme(scope.row.value)">使用</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -27,16 +27,16 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
themeList: state => state.theme.list,
|
||||
themeName: state => state.theme.name
|
||||
themeList: state => state.d2admin.themeList,
|
||||
themeActive: state => state.d2admin.themeActive
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
...mapMutations([
|
||||
'setTheme'
|
||||
]),
|
||||
handleSelectTheme (themeName) {
|
||||
this.setTheme(themeName)
|
||||
handleSelectTheme (name) {
|
||||
this.setTheme(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user