|
@@ -31,21 +31,21 @@ const proxy = getCurrentInstance().proxy
|
|
|
const tabType = ref('home')
|
|
|
|
|
|
//判断是否为开发环境.如果是开发环境,则同步前后台中文配置表
|
|
|
-const isDev = process.env.NODE_ENV === 'development'
|
|
|
-if (isDev) {
|
|
|
- let networkLang = window.localStorage.getItem('lang')
|
|
|
- if (networkLang || networkLang != JSON.stringify(lang)) {
|
|
|
- try {
|
|
|
- networkLang = JSON.parse(networkLang)
|
|
|
- networkLang.app.cn = lang
|
|
|
- proxy
|
|
|
- .post('/open/multilingual/setJson', {
|
|
|
- configValue: JSON.stringify(networkLang),
|
|
|
- })
|
|
|
- .then((res) => {})
|
|
|
- } catch (error) {}
|
|
|
- }
|
|
|
-}
|
|
|
+// const isDev = process.env.NODE_ENV === 'development'
|
|
|
+// if (isDev) {
|
|
|
+// let networkLang = window.localStorage.getItem('lang')
|
|
|
+// if (networkLang || networkLang != JSON.stringify(lang)) {
|
|
|
+// try {
|
|
|
+// networkLang = JSON.parse(networkLang)
|
|
|
+// networkLang.app.cn = lang
|
|
|
+// proxy
|
|
|
+// .post('/open/multilingual/setJson', {
|
|
|
+// configValue: JSON.stringify(networkLang),
|
|
|
+// })
|
|
|
+// .then((res) => {})
|
|
|
+// } catch (error) {}
|
|
|
+// }
|
|
|
+// }
|
|
|
const corpId = window.localStorage.getItem('corpId')
|
|
|
let routerName = ref(null)
|
|
|
//监听路由变化
|