fix
This commit is contained in:
parent
2a1f3f6876
commit
67ad9f7b45
@ -120,7 +120,7 @@ onLoad((options) => {
|
|||||||
console.log("options", options);
|
console.log("options", options);
|
||||||
state.id = options.id;
|
state.id = options.id;
|
||||||
state.pid = options.pid;
|
state.pid = options.pid;
|
||||||
const token = window?.plus?.storage.getItem("token");
|
const token = window?.plus?.storage.getItemAsync("token");
|
||||||
if (!uni.getStorageSync("token")) {
|
if (!uni.getStorageSync("token")) {
|
||||||
uni.setStorageSync("token", token);
|
uni.setStorageSync("token", token);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import { OAorMc } from "../index.js";
|
|||||||
const { showMessage } = useToast();
|
const { showMessage } = useToast();
|
||||||
console.log(
|
console.log(
|
||||||
"tokenServer",
|
"tokenServer",
|
||||||
window?.plus?.storage.getItem("token"),
|
window?.plus?.storage.getItemAsync("token"),
|
||||||
uni.getStorageSync("token")
|
uni.getStorageSync("token")
|
||||||
);
|
);
|
||||||
console.log("webview", window?.plus?.webview.getWebviewById("wv").tokenScan);
|
console.log("webview", window?.plus?.webview.getWebviewById("wv").tokenScan);
|
||||||
@ -24,6 +24,7 @@ const request = new Request({
|
|||||||
|
|
||||||
const token =
|
const token =
|
||||||
uni.getStorageSync("token") ||
|
uni.getStorageSync("token") ||
|
||||||
|
window?.plus?.storage.getItemAsync("token") ||
|
||||||
window?.plus?.webview.getWebviewById("wv").tokenScan ||
|
window?.plus?.webview.getWebviewById("wv").tokenScan ||
|
||||||
uni.getStorageSync("store-token") ||
|
uni.getStorageSync("store-token") ||
|
||||||
"";
|
"";
|
||||||
|
Loading…
Reference in New Issue
Block a user