Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 8db91880
authored
Oct 26, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
9ef9235f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
utils/network.js
utils/network.js
View file @
8db9188
...
@@ -24,22 +24,24 @@ class NetWork {
...
@@ -24,22 +24,24 @@ class NetWork {
const
thisPage
=
wx
.
$router
.
getPageInstance
(),
const
thisPage
=
wx
.
$router
.
getPageInstance
(),
options
=
Object
.
keys
(
thisPage
.
options
)
options
=
Object
.
keys
(
thisPage
.
options
)
this
[
ISCOMMECTED
]
=
false
this
[
ISCOMMECTED
]
=
false
if
(
thisPage
.
noPageAuth
)
{
wx
.
showLoading
()
wx
.
showLoading
()
this
.
refreshPage
()
wx
.
hideLoading
()
}
else
{
// if (thisPage.noPageAuth) {
let
url
=
`/
${
thisPage
.
route
}
`
// wx.showLoading()
if
(
options
.
length
)
{
// this.refreshPage()
let
query
=
[]
// } else {
options
.
map
(
key
=>
{
// let url = `/${thisPage.route}`
query
.
push
(
`
${
key
}
=
${
thisPage
.
options
[
key
]}
`
)
// if (options.length) {
})
// let query = []
url
+=
`?
${
query
.
join
(
'&'
)}
`
// options.map(key => {
}
// query.push(`${key}=${thisPage.options[key]}`)
wx
.
$router
.
redirectTo
(
'login.loading'
,
{
// })
url
// url += `?${query.join('&')}`
})
// }
}
// wx.$router.redirectTo('login.loading', {
// url
// })
// }
}
}
}
}
})
})
...
...
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