update:智控台可设置允许用户自由注册 (#809)

* update:修复默认模型没有修改到模版配置的bug

* update:智控台可设置允许用户自由注册
This commit is contained in:
hrz
2025-04-15 13:03:29 +08:00
committed by GitHub
parent 4bf950574c
commit e00da5d8d2
18 changed files with 186 additions and 147 deletions
@@ -5,33 +5,17 @@
</template>
<script>
import Api from '@/apis/api';
import { mapState } from 'vuex';
export default {
name: 'VersionFooter',
data() {
return {
version: ''
}
computed: {
...mapState({
version: state => state.pubConfig.version
})
},
mounted() {
this.getSystemVersion();
},
methods: {
getSystemVersion() {
const storedVersion = sessionStorage.getItem('systemVersion');
if (storedVersion) {
this.version = storedVersion;
return;
}
Api.user.getPubConfig(({ data }) => {
if (data.code === 0 && data.data.version) {
this.version = data.data.version;
sessionStorage.setItem('systemVersion', data.data.version);
}
});
}
this.$store.dispatch('fetchPubConfig');
}
}
</script>