Commit 3fd629b7 by ym

jump

1 parent a4a94491
......@@ -74,8 +74,18 @@ export default {
mounted() {
this.getRecord();
this.handleLocation();
this.listeningBack();
},
methods: {
listeningBack() {
const path = window.vm.$store.state.prevPath;
window.onpopstate = null;
window.onpopstate = function () {
window.onpopstate = null;
history.pushState({}, null, window.location.href);
window.vm.$router.replace({ name: "oilStation.index" });
};
},
getRecord() {
oilStation.getStationSearchList().then(res => {
this.hideLoading()
......
......@@ -33,18 +33,7 @@ module.exports = {
disableHostCheck: true,
host: '0.0.0.0',
port: 8081,
publicPath,
proxy: {
'/apid': { //这里最好有一个 /
target: 'http://192.168.3.152:35010', // 后台接口域名
ws: true, //如果要代理 websockets,配置这个参数
secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, //是否跨域
pathRewrite:{
'^/apid':''
}
}
}
publicPath
},
configureWebpack: config => {
config.resolve.modules = ['node_modules', './src/assets/spritesmith']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!