Browse Source

改publicPath

任一存 3 năm trước cách đây
mục cha
commit
a78561ee05
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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') {
 if (process.env.NODE_ENV === 'development') {
   Vue.prototype.$publicPath = '/'
   Vue.prototype.$publicPath = '/'
 } else if (process.env.NODE_ENV === 'production') {
 } else if (process.env.NODE_ENV === 'production') {
-  Vue.prototype.$publicPath = '/nanjing/'
+  Vue.prototype.$publicPath = '/njmuseum/'
 }
 }
 
 
 document.documentElement.style.fontSize = window.innerHeight * 0.025276 + 'px'
 document.documentElement.style.fontSize = window.innerHeight * 0.025276 + 'px'

+ 1 - 1
vue.config.js

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