This commit is contained in:
Aiden 2024-10-22 19:30:24 +08:00
parent 393a5f815a
commit 05875926d5
2 changed files with 8 additions and 5 deletions

View File

@ -5,10 +5,10 @@ import globalComponents from "./components";
import VConsole from "vconsole"; import VConsole from "vconsole";
const token = window?.plus?.storage.getItemAsync("token"); const token = window?.plus?.storage.getItemAsync("token");
uni.setStorageSync("token", token); uni.setStorageSync("token", token);
// if (import.meta.env.VITE_APP_MODE === "dev") { if (import.meta.env.VITE_APP_MODE === "dev") {
// new VConsole();
// }
new VConsole(); new VConsole();
}
// new VConsole();
export function createApp() { export function createApp() {
const app = createSSRApp(App); const app = createSSRApp(App);
globalComponents(app); globalComponents(app);

View File

@ -122,7 +122,10 @@ onLoad((options) => {
state.pid = options.pid; state.pid = options.pid;
// //
setTimeout(() => { setTimeout(() => {
if (window?.plus?.webview.getWebviewById("wv").tokenScan) { if (
window?.plus?.webview.getWebviewById("wv").tokenScan ||
uni.getStorageSync("store-token")
) {
paintingDetail(); paintingDetail();
getBtngetRules(); getBtngetRules();
} }