【优化】优化小程序底部版权信息加载可能为空的情况,优化后台首页登录后面板说明文字错误的显示。

This commit is contained in:
jianweie code
2023-02-28 22:19:38 +08:00
parent 86570f79bf
commit 080e07cf80
2 changed files with 21 additions and 4 deletions

View File

@@ -13,13 +13,30 @@
</template>
<script>
import { mapState } from 'vuex';
export default {
data() {
return {
shopBeiAn: this.$store.state.config.shopBeiAn || '',
shopName: this.$store.state.config.shopName || ''
//shopBeiAn: this.$store.state.config.shopBeiAn || '',
//shopName: this.$store.state.config.shopName || ''
}
}
},
computed: {
...mapState({
shopBeiAn: state => state.config.shopBeiAn,
shopName: state => state.config.shopName,
}),
shopBeiAn: {
get() {
return this.$store.state.config.shopBeiAn;
}
},
shopName: {
get() {
return this.$store.state.config.shopName;
}
},
},
}
</script>
<style scoped lang="scss">