Compare commits
No commits in common. "373f1a4f2b81079718e1900c706cccc61e5f24da" and "802034bffc91d70511aea6ab13e4509814ce5833" have entirely different histories.
373f1a4f2b
...
802034bffc
@ -1,12 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function () {},
|
onLaunch: function () {
|
||||||
|
console.log("App Launch");
|
||||||
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
console.log("App Show");
|
console.log("App Show");
|
||||||
const token = window?.plus?.storage.getItem("token");
|
console.log(window.location.href);
|
||||||
if (token) {
|
|
||||||
document.querySelector(".uni-page-head-hd").style.display = "none";
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log("App Hide");
|
console.log("App Hide");
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "登录",
|
"navigationBarTitleText": "登录",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -21,6 +22,7 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "添加画作",
|
"navigationBarTitleText": "添加画作",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -122,6 +122,7 @@ onLoad((options) => {
|
|||||||
state.pid = options.pid;
|
state.pid = options.pid;
|
||||||
const token =
|
const token =
|
||||||
window?.plus?.storage.getItem("token") || uni.getStorageSync("token");
|
window?.plus?.storage.getItem("token") || uni.getStorageSync("token");
|
||||||
|
const userInfo = uni.getStorageSync("userInfo");
|
||||||
console.log("token", token);
|
console.log("token", token);
|
||||||
// 已经登录了
|
// 已经登录了
|
||||||
if (token) {
|
if (token) {
|
||||||
|
Loading…
Reference in New Issue
Block a user