This commit is contained in:
Aiden 2024-10-22 14:50:17 +08:00
parent 9e50df8bfa
commit 768c425921
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,8 @@ import App from "./App.vue";
import uviewPlus from "uview-plus";
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();
}

View File

@ -120,9 +120,8 @@ onLoad((options) => {
console.log("options", options);
state.id = options.id;
state.pid = options.pid;
const token = window?.plus?.storage.getItemAsync("token");
if (!uni.getStorageSync("token")) {
uni.setStorageSync("token", token);
}
console.log("token", uni.getStorageSync("token"));
//

View File

@ -4,7 +4,7 @@ import { OAorMc } from "../index.js";
const { showMessage } = useToast();
console.log(
"tokenServer",
window?.plus?.storage.getItemAsync("token"),
uni.getStorageSync("token")
);
console.log("webview", window?.plus?.webview.getWebviewById("wv").tokenScan);