aamin 1 ano atrás
pai
commit
1e0ade202f
5 arquivos alterados com 9 adições e 6 exclusões
  1. 3 1
      .env.dev
  2. 2 1
      .env.mytest
  3. 2 1
      .env.prod
  4. BIN
      public/logo.ico
  5. 2 3
      src/main.js

+ 3 - 1
.env.dev

@@ -1,4 +1,6 @@
 VUE_APP_CLI_MODE=dev
 NODE_ENV=development
 PUBLIC_PATH=/
-VUE_APP_DEPLOY_ORIGIN=
+VUE_APP_DEPLOY_ORIGIN=
+VUE_APP_PC_URL="https://culture.4dage.com/NanjingMuseumWuJinZangPC/index.html#/"
+

+ 2 - 1
.env.mytest

@@ -1,4 +1,5 @@
 VUE_APP_CLI_MODE=test
 NODE_ENV=production
 PUBLIC_PATH=./
-VUE_APP_DEPLOY_ORIGIN=
+VUE_APP_DEPLOY_ORIGIN=
+VUE_APP_PC_URL="../NanjingMuseumWuJinZangPC/index.html#/"

+ 2 - 1
.env.prod

@@ -1,4 +1,5 @@
 VUE_APP_CLI_MODE=prod
 NODE_ENV=production
 PUBLIC_PATH=./
-VUE_APP_DEPLOY_ORIGIN=
+VUE_APP_DEPLOY_ORIGIN=
+VUE_APP_PC_URL="../wjz/index.html"

BIN
public/logo.ico


+ 2 - 3
src/main.js

@@ -53,12 +53,11 @@ if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
 }
 if (uaInfo.device.type === 'mobile') {
   app.provide('$isMobile', true)
-} else if (process.env.NODE_ENV === 'production') {
+} else {
   // window.location.href = './mobile.html'
   const appDom = document.getElementById('app')
   appDom.style.maxWidth = '100%'
-  window.location.href = './index.html#/pc'
-
+  window.location.assign(process.env.VUE_APP_PC_URL)
 }
 // } else {
 //   window.location.href = './mobile.html'