fix
This commit is contained in:
parent
393a5f815a
commit
05875926d5
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user