Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
panyongping
uni-pdtravel
Commits
5ff7840d
Commit
5ff7840d
authored
Aug 09, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ca45e67b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
App.vue
App.vue
+3
-3
main.js.map
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
+1
-1
main.js
unpackage/dist/dev/mp-weixin/common/main.js
+5
-5
No files found.
App.vue
View file @
5ff7840d
...
...
@@ -6,12 +6,12 @@
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
export
default
{
onLaunch
:
function
()
{
//初始化完成时触发(全局只触发一次
//
let openid=uni.getStorageSync("openid")
//
if(!openid){
let
openid
=
uni
.
getStorageSync
(
"openid"
)
if
(
!
openid
){
uni
.
navigateTo
({
url
:
"pages/vlog/vlogIndex/vlogIndex"
})
//
}
}
},
onShow
:
function
()
{
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
View file @
5ff7840d
This diff is collapsed.
Click to expand it.
unpackage/dist/dev/mp-weixin/common/main.js
View file @
5ff7840d
...
...
@@ -104,12 +104,12 @@ __webpack_require__.r(__webpack_exports__);
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
var
_default
=
{
onLaunch
:
function
onLaunch
()
{
//初始化完成时触发(全局只触发一次
// let openid=uni.getStorageSync("openid")
// if(!openid)
{
uni
.
navigateTo
({
url
:
"pages/vlog/vlogIndex/vlogIndex"
});
var
openid
=
uni
.
getStorageSync
(
"openid"
);
if
(
!
openid
)
{
uni
.
navigateTo
({
url
:
"pages/vlog/vlogIndex/vlogIndex"
});
//
}
}
},
onShow
:
function
onShow
()
{
...
...
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