From 21cfb454d7ca51c07fa286b8a49607c8b58ff3f0 Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Tue, 21 Jul 2020 09:40:10 +0800 Subject: [PATCH] chore: optimize the code; :star2: --- src/components/setting/i18n.js | 6 +++--- vue.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/setting/i18n.js b/src/components/setting/i18n.js index 602df6d..03873a7 100644 --- a/src/components/setting/i18n.js +++ b/src/components/setting/i18n.js @@ -32,7 +32,7 @@ module.exports = { effect: '动画效果', direction: '动画方向' }, - alert: '拷贝配置后,直接覆盖文件 src/config/config.js 中的全部内容即可。(注意:仅会拷贝与默认配置不同的项)', + alert: '拷贝配置后,直接覆盖文件 src/config/config.js 中的全部内容,然后重启即可。(注意:仅会拷贝与默认配置不同的项)', copy: '拷贝配置' }, HK: { @@ -67,7 +67,7 @@ module.exports = { effect: '動畫效果', direction: '動畫方向' }, - alert: '拷貝配置后,直接覆蓋文件 src/config/config.js 中的全部內容即可。(注意:僅會拷貝與默認配置不同的項)', + alert: '拷貝配置后,直接覆蓋文件 src/config/config.js 中的全部內容,然後重啟即可。(注意:僅會拷貝與默認配置不同的項)', copy: '拷貝配置' }, US: { @@ -102,7 +102,7 @@ module.exports = { effect: 'Effect', direction: 'Direction' }, - alert: 'After copying the configuration code, directly cover all contents in the file src/config/config.js. (Note: only items that are different from the default configuration will be copied)', + alert: 'After copying the configuration code, directly cover all contents in the file src/config/config.js, then restart the server. (Note: only items that are different from the default configuration will be copied)', copy: 'Copy Setting' } } diff --git a/vue.config.js b/vue.config.js index 80339af..eb4694d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,7 +40,7 @@ module.exports = { } } }, - publicPath: './', + publicPath: process.env.NODE_ENV === 'production' ? '/vue-antd-admin/' : '/', outputDir: 'dist', assetsDir: 'static', productionSourceMap: false