fix
This commit is contained in:
parent
9e50df8bfa
commit
768c425921
@ -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();
|
||||
}
|
||||
|
@ -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"));
|
||||
// 已经登录了
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user