Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-employeeself-develop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3660b6d0
authored
Nov 10, 2023
by
golton_gao
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update: 优化初次进入页面时的身份获取
parent
960fbbe5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
src/shared/app.vue
src/shared/main.js
src/shared/app.vue
View file @
3660b6d0
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ export default {
},
},
created
()
{
created
()
{
// 初始化 token
// 初始化 token
Api
.
setToken
(
this
)
// await
Api.setToken(this)
// 修改导航条颜色
// 修改导航条颜色
this
.
$nativeApi
.
system
.
statusBarColor
([
255
,
255
,
255
,
1
])
this
.
$nativeApi
.
system
.
statusBarColor
([
255
,
255
,
255
,
1
])
...
...
src/shared/main.js
View file @
3660b6d0
...
@@ -7,6 +7,7 @@ import App from './app.vue'
...
@@ -7,6 +7,7 @@ import App from './app.vue'
import
store
from
'./store'
import
store
from
'./store'
import
plugin
from
'./plugin'
import
plugin
from
'./plugin'
import
routerStore
from
'../libraries/plugins/RouterStore'
import
routerStore
from
'../libraries/plugins/RouterStore'
import
*
as
Api
from
'@/api/index'
// import VConsole from 'vconsole'
// import VConsole from 'vconsole'
// let vconsole = new VConsole()
// let vconsole = new VConsole()
...
@@ -14,12 +15,15 @@ Vue.use(routerStore, store, router)
...
@@ -14,12 +15,15 @@ Vue.use(routerStore, store, router)
Vue
.
config
.
debug
=
process
.
env
.
NODE_ENV
!==
'production'
Vue
.
config
.
debug
=
process
.
env
.
NODE_ENV
!==
'production'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
/* eslint-disable no-new */
const
vm
=
new
Vue
({
new
Vue
({
el
:
'#app'
,
store
,
store
,
router
,
router
,
plugin
,
plugin
,
template
:
'<App/>'
,
template
:
'<App/>'
,
components
:
{
App
}
components
:
{
App
}
})
})
window
.
qing
.
ready
(
async
()
=>
{
// 初始化 token
await
Api
.
setToken
(
vm
)
vm
.
$mount
(
'#app'
)
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment