This commit is contained in:
Aiden 2024-10-25 14:47:33 +08:00
parent bc7d467084
commit ea22d49c60
3 changed files with 16 additions and 9 deletions

View File

@ -112,10 +112,13 @@ onShow(() => {
}); });
}); });
onLoad((options) => { onLoad((options) => {
const token = window?.plus?.storage.getItem("token"); if (window.plus) {
if (token) { const token = plus?.webview.getWebviewById("wv").tokenScan;
document.querySelector(".uni-page-head-hd").style.display = "none"; if (token) {
document.querySelector(".uni-page-head-hd").style.display = "none";
}
} }
state.id = options.id; state.id = options.id;
state.pid = options.pid; state.pid = options.pid;
state.boxRelBucketStatus = options.boxRelBucketStatus; state.boxRelBucketStatus = options.boxRelBucketStatus;

View File

@ -162,9 +162,11 @@ const state = reactive({
searchValue: "", searchValue: "",
}); });
onLoad((options) => { onLoad((options) => {
const token = window?.plus?.storage.getItem("token"); if (window.plus) {
if (token) { const token = plus?.webview.getWebviewById("wv").tokenScan;
document.querySelector(".uni-page-head-hd").style.display = "none"; if (token) {
document.querySelector(".uni-page-head-hd").style.display = "none";
}
} }
state.id = options.id; state.id = options.id;
state.pid = options.pid; state.pid = options.pid;

View File

@ -69,9 +69,11 @@ const state = reactive({
containerUid: "", containerUid: "",
}); });
onLoad((options) => { onLoad((options) => {
const token = window?.plus?.storage.getItem("token"); if (window.plus) {
if (token) { const token = plus?.webview.getWebviewById("wv").tokenScan;
document.querySelector(".uni-page-head-hd").style.display = "none"; if (token) {
document.querySelector(".uni-page-head-hd").style.display = "none";
}
} }
state.id = options.id; state.id = options.id;
state.pid = options.pid; state.pid = options.pid;