From e27e134b6d0b7a656c9d92cde5261c3ada694543 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期一, 20 十一月 2023 17:49:59 +0800 Subject: [PATCH] feat: 切换设备后如果只有一个通道自动切到单通道;如果没有配置plc也要展示骨架屏 --- src/App.vue | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6c8ba38..e353686 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,12 +4,33 @@ <router-view /> </div> </template> +<script> +import util from "@/libs/util"; +export default { + name: "app", + + watch: { + // "$i18n.locale": "i18nHandle" + }, + created() { + // this.i18nHandle(this.$i18n.locale); + }, + methods: { + // i18nHandle(val, oldVal) { + // util.cookies.set("lang", val); + // document.querySelector("html").setAttribute("lang", val); + // } + } +}; +</script> <style lang="scss"> #app, html, body { width: 100%; height: 100%; + overflow:hidden; + margin:0; } </style> -- Gitblit v1.8.0