Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-customer-new-master
Commits
f4e11231
Commit
f4e11231
authored
Jan 03, 2025
by
honghy
Committed by
wux
Jan 09, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存缓存 版本号顺序调整
parent
30e5fb15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
App.vue
src/App.vue
+13
-13
No files found.
src/App.vue
View file @
f4e11231
<
script
>
<
script
>
export
default
{
export
default
{
onLaunch
:
function
()
{
onLaunch
:
function
()
{
//#ifdef APP-PLUS
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
wgtinfo
)
{
// 获取 app的version
let
appversion
=
wgtinfo
.
version
let
versionCode
=
wgtinfo
.
versionCode
// 存缓存 版本号
try
{
uni
.
setStorageSync
(
'
appversion
'
,
appversion
)
uni
.
setStorageSync
(
'
versionCode
'
,
versionCode
)
}
catch
(
e
)
{}
console
.
log
(
'
appversion:
'
+
appversion
)
})
//#endif
let
Authorization
=
uni
.
getStorageSync
(
'
Authorization
'
)
let
Authorization
=
uni
.
getStorageSync
(
'
Authorization
'
)
if
(
!
Authorization
||
Authorization
==
''
)
{
if
(
!
Authorization
||
Authorization
==
''
)
{
if
(
if
(
...
@@ -18,19 +31,6 @@ export default {
...
@@ -18,19 +31,6 @@ export default {
if
(
Authorization
&&
!
this
.
$store
.
state
.
userInfo
)
{
if
(
Authorization
&&
!
this
.
$store
.
state
.
userInfo
)
{
this
.
$store
.
dispatch
(
'
updateUserInfo
'
)
this
.
$store
.
dispatch
(
'
updateUserInfo
'
)
}
}
//#ifdef APP-PLUS
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
wgtinfo
)
{
// 获取 app的version
let
appversion
=
wgtinfo
.
version
let
versionCode
=
wgtinfo
.
versionCode
// 存缓存 版本号
try
{
uni
.
setStorageSync
(
'
appversion
'
,
appversion
)
uni
.
setStorageSync
(
'
versionCode
'
,
versionCode
)
}
catch
(
e
)
{}
console
.
log
(
'
appversion:
'
+
appversion
)
})
//#endif
},
},
onShow
:
function
()
{},
onShow
:
function
()
{},
onHide
:
function
()
{}
onHide
:
function
()
{}
...
...
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