Commit 3fd629b7 by ym

jump

1 parent a4a94491
...@@ -74,8 +74,18 @@ export default { ...@@ -74,8 +74,18 @@ export default {
mounted() { mounted() {
this.getRecord(); this.getRecord();
this.handleLocation(); this.handleLocation();
this.listeningBack();
}, },
methods: { 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() { getRecord() {
oilStation.getStationSearchList().then(res => { oilStation.getStationSearchList().then(res => {
this.hideLoading() this.hideLoading()
......
...@@ -33,18 +33,7 @@ module.exports = { ...@@ -33,18 +33,7 @@ module.exports = {
disableHostCheck: true, disableHostCheck: true,
host: '0.0.0.0', host: '0.0.0.0',
port: 8081, port: 8081,
publicPath, publicPath
proxy: {
'/apid': { //这里最好有一个 /
target: 'http://192.168.3.152:35010', // 后台接口域名
ws: true, //如果要代理 websockets,配置这个参数
secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, //是否跨域
pathRewrite:{
'^/apid':''
}
}
}
}, },
configureWebpack: config => { configureWebpack: config => {
config.resolve.modules = ['node_modules', './src/assets/spritesmith'] 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!