@@ -10,8 +10,7 @@ Vue.use(ElementUI);
// Vue.mixin({
// })
-// 不能通过location去判断
-Vue.prototype.$homePageUrl = 'http://192.168.0.81:8081/main'
+Vue.prototype.$homePageUrl = location.origin + location.pathname
Vue.prototype.$eventBus = new Vue({})
@@ -938,7 +938,7 @@ export default {
this.ariaSettings.isMagnifying = !this.ariaSettings.isMagnifying
},
onClickHelp() {
- window.open('../help')
+ window.open('./help.html')
onClickElderlyServicesAreaEntry() {
this.ariaSettings.menuMode = 'old'
@@ -1,10 +1,22 @@
const webpack = require('webpack')
+let publicPath = '/'
+switch (process.env.NODE_ENV) {
+ case 'development':
+ break;
+ case 'production':
+ publicPath = '/shouBo/'
+ default:
+}
+
module.exports = {
pages: {
main: 'src/main.js',
help: 'src/help.js',
+ publicPath,
configureWebpack: {
module: {
rules: [