|
@@ -12,9 +12,16 @@ import browser from '@/utils/browser'
|
|
|
import "@/assets/style/my-reset.css"
|
|
|
|
|
|
console.log('v0410.1517')
|
|
|
-if (!browser.mobile) {
|
|
|
- let firstUrlDir = location.href.split('/')[1]
|
|
|
- location.replace(`/${firstUrlDir.substring(0, firstUrlDir.length - 1)}/index.html#?m=${process.env.VUE_APP_SCENE_CODE}`)
|
|
|
+// 首先,肯定是中文版
|
|
|
+if (!browser.mobile) { // 在pc端打开了
|
|
|
+ let urlFirstPath = location.pathname.split('/')[1]
|
|
|
+ let urlFirstPathNew = ''
|
|
|
+ if (urlFirstPath === process.env.VUE_APP_TEST_ENV_CN_MOBILE_URL_FIRST_PATH) { // 测试环境
|
|
|
+ urlFirstPathNew = process.env.VUE_APP_TEST_ENV_CN_PC_URL_FIRST_PATH
|
|
|
+ } else if (urlFirstPath === process.env.VUE_APP_PROD_ENV_CN_MOBILE_URL_FIRST_PATH) { // 生产环境
|
|
|
+ urlFirstPathNew = process.env.VUE_APP_PROD_ENV_CN_PC_URL_FIRST_PATH
|
|
|
+ }
|
|
|
+ location.replace(`${location.origin}/${urlFirstPathNew}/index.html#/?m=${process.env.VUE_APP_SCENE_CODE_CN}`)
|
|
|
}
|
|
|
|
|
|
Vue.use(Viewer, {
|