页面底部信息配置迁移

pull/26/merge
isummer 2 years ago
parent 7aa0471ba9
commit b093d7133b
  1. 14
      fir_client/src/components/FirFooter.vue
  2. 20
      fir_client/vue.config.js

@ -28,22 +28,12 @@
</template> </template>
<script> <script>
const footer = process.env.base_env.footer
export default { export default {
name: "FirFooter", name: "FirFooter",
data() { data() {
return { return {
footer: { footer
copyright: 'Copyright © 2020-2099 isummer 版权所有.',
ipcBeiAn: {
url: 'https://beian.miit.gov.cn',
text: '京ICP备681262896号',
},
gongAnBeiAn: {
url: 'https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=681262896',
text: '京公网安备681262896号',
},
}
} }
} }
} }

@ -101,11 +101,24 @@ const dev_base_env = {
}; };
let base_evn = dev_base_env; let base_evn = dev_base_env;
const footer_info = {
copyright: 'Copyright © 2022-2099 isummer 版权所有.',
ipcBeiAn: {
url: 'https://beian.miit.gov.cn',
text: '京ICP备681262896号',
},
gongAnBeiAn: {
url: 'https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=681262896',
text: '京公网安备681262896号',
},
}
if (IS_PROD) { if (IS_PROD) {
base_evn = pro_base_env base_evn = pro_base_env
} else { } else {
base_evn = dev_base_env base_evn = dev_base_env
} }
base_evn.footer_info = footer_info
function get_public_path(pages) { function get_public_path(pages) {
if (!IS_PROD) { if (!IS_PROD) {
@ -141,7 +154,12 @@ module.exports = {
config config
.plugin('define') .plugin('define')
.tap(args => { .tap(args => {
args[0]['process.env']['base_env'] = JSON.stringify({baseUrl: base_evn.baseUrl,baseShortUrl:base_evn.baseShortUrl,version:base_evn.version}); args[0]['process.env']['base_env'] = JSON.stringify({
baseUrl: base_evn.baseUrl,
baseShortUrl: base_evn.baseShortUrl,
version: base_evn.version,
footer: base_evn.footer_info
});
return args return args
}); });

Loading…
Cancel
Save