Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-main
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 ab121270
authored
Dec 13, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!11
2 parents
d1a3e1b1
992a9ea3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
src/api/wxConfig.js
src/config/index.js
src/store/modules/app.js
src/api/wxConfig.js
View file @
ab12127
...
@@ -225,7 +225,7 @@ const WxConfig = {
...
@@ -225,7 +225,7 @@ const WxConfig = {
},
},
error
:
function
(
res
)
{
error
:
function
(
res
)
{
if
(
res
.
errMsg
.
indexOf
(
'function_not_exist'
)
>
0
)
{
if
(
res
.
errMsg
.
indexOf
(
'function_not_exist'
)
>
0
)
{
alert
(
'版本过低请升级'
)
Notify
(
'版本过低请升级'
)
}
}
}
}
})
})
...
...
src/config/index.js
View file @
ab12127
...
@@ -15,8 +15,8 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -15,8 +15,8 @@ export const fetchConfig = function (isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
config
)
return
Promise
.
resolve
(
config
)
}
}
//
/**测试mock */ return window.fetch('https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-main-config', {}).then(res => res.json())
/**测试mock */
return
window
.
fetch
(
'https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-main-config'
,
{}).
then
(
res
=>
res
.
json
())
/**生产 */
return
window
.
fetch
(
'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-main-config'
,
{}).
then
(
res
=>
res
.
json
())
/
/ /
**生产 */ return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-main-config', {}).then(res => res.json())
}
}
export
const
cfg
=
{
export
const
cfg
=
{
install
(
vue
,
config
)
{
install
(
vue
,
config
)
{
...
...
src/store/modules/app.js
View file @
ab12127
...
@@ -13,7 +13,8 @@ import { Notify } from 'vant'
...
@@ -13,7 +13,8 @@ import { Notify } from 'vant'
const
state
=
{
const
state
=
{
pageMeta
:
''
,
pageMeta
:
''
,
keepAlives
:
[],
keepAlives
:
[],
lastPath
:
''
lastPath
:
''
,
showWindow
:
false
}
}
import
router
from
'@/router'
import
router
from
'@/router'
const
mutations
=
{
const
mutations
=
{
...
@@ -80,9 +81,9 @@ const actions = {
...
@@ -80,9 +81,9 @@ const actions = {
.
then
(({
code
,
data
})
=>
{
.
then
(({
code
,
data
})
=>
{
let
url
=
`
${
redirectUrl
.
split
(
'#'
)[
0
]}
#/`
let
url
=
`
${
redirectUrl
.
split
(
'#'
)[
0
]}
#/`
let
route
=
state
.
lastPath
==
'home'
?
''
:
state
.
lastPath
let
route
=
state
.
lastPath
==
'home'
?
''
:
state
.
lastPath
state
.
showWindow
=
true
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
if
(
data
.
loginList
.
length
)
{
if
(
data
.
loginList
.
length
)
{
state
.
showWindow
=
true
route
=
route
.
replace
(
'.'
,
'/'
)
route
=
route
.
replace
(
'.'
,
'/'
)
if
(
data
.
loginList
.
length
>
1
)
{
if
(
data
.
loginList
.
length
>
1
)
{
util
.
setLocalStorage
(
'dj_scrm_loginToken'
,
data
.
loginToken
)
util
.
setLocalStorage
(
'dj_scrm_loginToken'
,
data
.
loginToken
)
...
@@ -108,7 +109,7 @@ const actions = {
...
@@ -108,7 +109,7 @@ const actions = {
if
(
query
)
URL
=
`
${
URL
}
&
${
query
}
`
if
(
query
)
URL
=
`
${
URL
}
&
${
query
}
`
window
.
location
.
href
=
URL
window
.
location
.
href
=
URL
}
}
else
window
.
location
.
replace
(
`
${
url
}${
route
}
`
)
else
window
.
location
.
href
=
`
${
url
}${
route
}
`
}
}
}
else
{
}
else
{
/**没有账号 */
/**没有账号 */
...
@@ -136,8 +137,8 @@ const actions = {
...
@@ -136,8 +137,8 @@ const actions = {
})
})
return
return
}
else
{
}
else
{
appid
=
'w
w7ee69c648ae1b7e6
'
appid
=
'w
p-ZewEAAAhictTABWn9t2_N79ybqhCw
'
// agentid = 1000003
agentid
=
1000002
// appid = 'wwc1fefc2a3f70bd0b'
// appid = 'wwc1fefc2a3f70bd0b'
// agentid = 1000002
// agentid = 1000002
}
}
...
...
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