kevin_zhangl 2 лет назад
Родитель
Сommit
32020d988f
3 измененных файлов с 4 добавлено и 3 удалено
  1. 1 1
      .env.development
  2. 2 1
      .env.production
  3. 1 1
      vue.config.js

+ 1 - 1
.env.development

@@ -4,6 +4,6 @@ ENV='development'
 # base api
 VUE_APP_BASE_API=''
 VUE_APP_CDN_API='http://16.163.228.151:8041'
-VUE_APP_BASE_WEBSITE='http://local.ng.frontend.ele.com:8080'
+VUE_APP_BASE_WEBSITE='http://local.ng.frontend.ele.com'
 VUE_APP_BASE_PAY_STACK_PUBLIC_KEY='pk_test_2eed10135c4a958c5073795b22854ded9d1a6c55'
 VUE_APP_ACCESS_TOKEN_PREFIX='Bearer '

+ 2 - 1
.env.production

@@ -2,7 +2,8 @@
 ENV='production'
 
 # base api
-VUE_APP_BASE_API='https://ng-frontend-api.elken.com'
+#VUE_APP_BASE_API='https://ng-frontend-api.elken.com/ng-prod-api/'
+VUE_APP_BASE_API=''
 VUE_APP_CDN_API='http://ng-upload.elken.com'
 VUE_APP_BASE_WEBSITE='https://ngds.elken.com'
 VUE_APP_BASE_PAY_STACK_PUBLIC_KEY='pk_live_fae524f9d073d877beeb661fd825a37a9bc91f0a'

+ 1 - 1
vue.config.js

@@ -24,7 +24,7 @@ module.exports = {
    * In most cases please use '/' !!!
    * Detail: https://cli.vuejs.org/config/#publicpath
    */
-  publicPath: '/',
+  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
   outputDir: 'dist',
   assetsDir: 'static',
   lintOnSave: process.env.NODE_ENV === 'development',