Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj-simple
/
account
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 27f6714e
authored
Mar 28, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
63b0e736
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
9 deletions
src/common/axios.js
src/views/customer/account/add/app.js
src/views/customer/account/detail/app.js
src/views/customer/account/index/app.js
src/views/customer/dictionaryManage/dictionaryData/app.js
src/views/customer/dictionaryManage/index/app.js
src/views/productManage/functionList/app.js
src/views/productManage/menuList/app.js
src/views/productManage/productList/app.js
src/common/axios.js
View file @
27f6714
...
@@ -74,7 +74,7 @@ service.interceptors.response.use(
...
@@ -74,7 +74,7 @@ service.interceptors.response.use(
response
.
config
.
retry
=
true
response
.
config
.
retry
=
true
return
service
(
response
.
config
)
return
service
(
response
.
config
)
}
}
if
(
errId
+
''
===
result
.
errId_logout_value
+
''
)
{
if
(
errId
+
''
===
result
.
errId_logout_value
+
''
||
code
+
''
===
result
.
errId_logout_value
+
''
)
{
// window.vm && window.vm.$parent_iframe && window.vm.$parent_iframe.to('login')
// window.vm && window.vm.$parent_iframe && window.vm.$parent_iframe.to('login')
window
.
parent
.
postMessage
({
window
.
parent
.
postMessage
({
type
:
'logout'
},
'*'
);
type
:
'logout'
},
'*'
);
...
...
src/views/customer/account/add/app.js
View file @
27f6714
...
@@ -3,7 +3,9 @@ import base from '@/base'
...
@@ -3,7 +3,9 @@ import base from '@/base'
import
GlAxios
from
'../../../../common/axios'
import
GlAxios
from
'../../../../common/axios'
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
App
)
base
.
render
(
App
)
})
})
src/views/customer/account/detail/app.js
View file @
27f6714
...
@@ -3,7 +3,9 @@ import base from '@/base'
...
@@ -3,7 +3,9 @@ import base from '@/base'
import
GlAxios
from
'../../../../common/axios'
import
GlAxios
from
'../../../../common/axios'
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
App
)
base
.
render
(
App
)
})
})
src/views/customer/account/index/app.js
View file @
27f6714
...
@@ -3,7 +3,9 @@ import base from '@/base'
...
@@ -3,7 +3,9 @@ import base from '@/base'
import
GlAxios
from
'../../../../common/axios'
import
GlAxios
from
'../../../../common/axios'
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
App
)
base
.
render
(
App
)
})
})
src/views/customer/dictionaryManage/dictionaryData/app.js
View file @
27f6714
...
@@ -3,7 +3,9 @@ import base from '@/base'
...
@@ -3,7 +3,9 @@ import base from '@/base'
import
GlAxios
from
'../../../../common/axios'
import
GlAxios
from
'../../../../common/axios'
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
App
)
base
.
render
(
App
)
})
})
src/views/customer/dictionaryManage/index/app.js
View file @
27f6714
...
@@ -3,7 +3,9 @@ import base from '@/base'
...
@@ -3,7 +3,9 @@ import base from '@/base'
import
GlAxios
from
'../../../../common/axios'
import
GlAxios
from
'../../../../common/axios'
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
App
)
base
.
render
(
App
)
})
})
src/views/productManage/functionList/app.js
View file @
27f6714
...
@@ -3,7 +3,9 @@ import base from '@/base'
...
@@ -3,7 +3,9 @@ import base from '@/base'
import
GlAxios
from
'../../../common/axios'
import
GlAxios
from
'../../../common/axios'
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
App
)
base
.
render
(
App
)
})
})
src/views/productManage/menuList/app.js
View file @
27f6714
...
@@ -9,7 +9,9 @@ Apps.keys().map(item => {
...
@@ -9,7 +9,9 @@ Apps.keys().map(item => {
console
.
log
(
data
);
console
.
log
(
data
);
const
{
config
}
=
data
const
{
config
}
=
data
Vue
.
prototype
.
fileUploadURL
=
config
.
axios
.
fileUploadURL
Vue
.
prototype
.
fileUploadURL
=
config
.
axios
.
fileUploadURL
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
Apps
(
item
).
default
)
base
.
render
(
Apps
(
item
).
default
)
})
})
...
...
src/views/productManage/productList/app.js
View file @
27f6714
...
@@ -7,7 +7,9 @@ const Apps = require.context('./', false, /\.vue$/)
...
@@ -7,7 +7,9 @@ const Apps = require.context('./', false, /\.vue$/)
Apps
.
keys
().
map
(
item
=>
{
Apps
.
keys
().
map
(
item
=>
{
base
.
getConfig
().
then
(
data
=>
{
base
.
getConfig
().
then
(
data
=>
{
const
{
config
}
=
data
const
{
config
}
=
data
var
cfg
=
Object
.
assign
({},
config
.
axios
)
var
cfg
=
Object
.
assign
({
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}},
config
.
axios
)
GlAxios
.
init
(
cfg
)
GlAxios
.
init
(
cfg
)
base
.
render
(
Apps
(
item
).
default
)
base
.
render
(
Apps
(
item
).
default
)
})
})
...
...
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