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