Commit 69a2318d authored by 赵啸非's avatar 赵啸非

修改资源访问地址

parent 5c0ed7ff
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>智慧大厅精细化管理平台</title> <title>智慧大厅精细化管理平台</title>
<link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.5/lib/theme-chalk/index.css"> <!-- <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.5/lib/theme-chalk/index.css">-->
</head> </head>
<body> <body>
<noscript> <noscript>
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script src="https://unpkg.com/vue@2.6.14/dist/vue.runtime.min.js"></script> <!-- <script src="https://unpkg.com/vue@2.6.14/dist/vue.runtime.min.js"></script>
<script src="https://unpkg.com/vuex@3.6.0/dist/vuex.min.js"></script> <script src="https://unpkg.com/vuex@3.6.0/dist/vuex.min.js"></script>
<script src="https://unpkg.com/vue-router@3.4.9/dist/vue-router.min.js"></script> <script src="https://unpkg.com/vue-router@3.4.9/dist/vue-router.min.js"></script>
<script src="https://unpkg.com/element-ui@2.15.5/lib/index.js"></script> <script src="https://unpkg.com/element-ui@2.15.5/lib/index.js"></script>
<script src="https://unpkg.com/vue-amap/dist/index.js"></script> <script src="https://unpkg.com/vue-amap/dist/index.js"></script>-->
</body> </body>
</html> </html>
...@@ -29,15 +29,15 @@ instance.interceptors.request.use( ...@@ -29,15 +29,15 @@ instance.interceptors.request.use(
// 获取当前页面的主机名和端口号 // 获取当前页面的主机名和端口号
const hostname = location.hostname; const hostname = location.hostname;
const baseURL = config.baseURL; const baseURL = config.baseURL;
//const port = location.port; const port = location.port;
const port = /* const port =
process.env.VUE_APP_PORTAL_PORT == "undefined" process.env.VUE_APP_PORTAL_PORT == "undefined"
? "11089" ? "11089"
: process.env.VUE_APP_PORTAL_PORT; : process.env.VUE_APP_PORTAL_PORT;*/
// 动态修改请求地址 // 动态修改请求地址
console.log(config.url); console.log(config.url,port);
if (config.url.startsWith("/")) { if (config.url.startsWith("/")) {
// 字符串以 / 开头 // 字符串以 / 开头
......
...@@ -10,8 +10,8 @@ NProgress.configure({ showSpinner: false }) ...@@ -10,8 +10,8 @@ NProgress.configure({ showSpinner: false })
Vue.use(Router); Vue.use(Router);
const originalPush = VueRouter.prototype.push const originalPush = Router.prototype.push
VueRouter.prototype.push = function push(location, onResolve, onReject) { Router.prototype.push = function push(location, onResolve, onReject) {
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject) if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
return originalPush.call(this, location).catch(err => err) return originalPush.call(this, location).catch(err => err)
} }
......
module.exports = { module.exports = {
productionSourceMap: false, productionSourceMap: false,
assetsDir: 's',
configureWebpack: {
externals: {
vue: "Vue",
vuex: "Vuex",
"vue-router": "VueRouter",
"element-ui": "ELEMENT"
},
},
lintOnSave:false, lintOnSave:false,
devServer: { devServer: {
inline: true, inline: true,
......
...@@ -57,7 +57,7 @@ public class RealTimePeopleStatTaskImpl implements ITaskExcuteService { ...@@ -57,7 +57,7 @@ public class RealTimePeopleStatTaskImpl implements ITaskExcuteService {
delFiles(); delFiles();
//随机添加人员监控 //随机添加人员监控
randomAlarmPeople(); // randomAlarmPeople();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment