Kaynağa Gözat

publicPath适配新网址

任一存 3 yıl önce
ebeveyn
işleme
9971d90f29
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      src/main.js
  2. 1 1
      vue.config.js

+ 1 - 1
src/main.js

@@ -22,7 +22,7 @@ Vue.config.productionTip = false
 if (process.env.NODE_ENV === 'development') {
   Vue.prototype.$publicPath = '/'
 } else if (process.env.NODE_ENV === 'production') {
-  Vue.prototype.$publicPath = '/njmuseum/'
+  Vue.prototype.$publicPath = '/njmuseum_v2/'
 }
 Vue.prototype.$backEndBaseUrl = 'https://culture.4dage.com/njmuseum/'
 

+ 1 - 1
vue.config.js

@@ -5,7 +5,7 @@ switch (process.env.NODE_ENV) {
 case 'development':
   break
 case 'production':
-  publicPath = '/njmuseum/'
+  publicPath = '/njmuseum_v2/'
   break
 default:
   break