fix
This commit is contained in:
parent
be84013ade
commit
391430e15c
@ -1,11 +1,12 @@
|
|||||||
<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");
|
||||||
console.log(window.location.href);
|
const token = window?.plus?.storage.getItem("token");
|
||||||
|
if (token) {
|
||||||
|
document.querySelector(".uni-page-head-hd").style.display = "none";
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log("App Hide");
|
console.log("App Hide");
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "登录",
|
"navigationBarTitleText": "登录",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -22,7 +21,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "添加画作",
|
"navigationBarTitleText": "添加画作",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -122,7 +122,6 @@ 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