Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
scrm-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3fd629b7
authored
Sep 22, 2021
by
ym
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
jump
1 parent
a4a94491
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
src/views/oilStation/location.vue
vue.config.js
src/views/oilStation/location.vue
View file @
3fd629b
...
@@ -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
()
...
...
vue.config.js
View file @
3fd629b
...
@@ -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'
]
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment