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";
const token = window?.plus?.storage.getItemAsync("token");
uni.setStorageSync("token", token);
// if (import.meta.env.VITE_APP_MODE === "dev") {
// new VConsole();
// }
new VConsole();
if (import.meta.env.VITE_APP_MODE === "dev") {
new VConsole();
}
// new VConsole();
export function createApp() {
const app = createSSRApp(App);
globalComponents(app);

View File

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