fix: 将版本信息移到配置文件中
This commit is contained in:
parent
6cb0f5c9c5
commit
5e289a44cb
|
@ -13,5 +13,6 @@ let config = {
|
|||
token : 'token', //本地存储token的变量名
|
||||
login_page : '/pages/public/login', //拦截后跳转的登陆页路径
|
||||
vconsole_status: 0, //是否启用调试工具,1为启用,0不启用
|
||||
h5AppVersion: 'v1.0.0', //h5版本号
|
||||
}
|
||||
export default config
|
|
@ -7,7 +7,7 @@
|
|||
:src="logo"
|
||||
></image>
|
||||
|
||||
<text> {{ version }}</text>
|
||||
<text> {{ $systemConfig.h5AppVersion }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -23,7 +23,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
logo: "/static/images/version.png",
|
||||
version: "v1.0.2",
|
||||
// version: "v1.0.2", // 改用配置文件版本号
|
||||
};
|
||||
},
|
||||
onLoad(op) {
|
||||
|
@ -34,11 +34,11 @@ export default {
|
|||
// this.getUserInfo();
|
||||
},
|
||||
methods: {
|
||||
getUserInfo() {
|
||||
this.$api.baseInfo().then((res) => {
|
||||
this.baseInfo = res.data;
|
||||
});
|
||||
},
|
||||
// getUserInfo() {
|
||||
// this.$api.baseInfo().then((res) => {
|
||||
// this.baseInfo = res.data;
|
||||
// });
|
||||
// },
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue