fix
This commit is contained in:
parent
b513eb2535
commit
74b5ae75c1
@ -5,9 +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();
|
||||||
}
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App);
|
const app = createSSRApp(App);
|
||||||
globalComponents(app);
|
globalComponents(app);
|
||||||
|
@ -22,7 +22,7 @@ export const OAorMc = () => {
|
|||||||
const currentWebView = plus.webview.getWebviewById("wv");
|
const currentWebView = plus.webview.getWebviewById("wv");
|
||||||
return currentWebView.type;
|
return currentWebView.type;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return "";
|
return "MC";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
export const hasPermission = (userPermission) => {
|
export const hasPermission = (userPermission) => {
|
||||||
|
@ -3,10 +3,10 @@ import useToast from "@/hooks/toast/useToast.js";
|
|||||||
import { OAorMc } from "../index.js";
|
import { OAorMc } from "../index.js";
|
||||||
const { showMessage } = useToast();
|
const { showMessage } = useToast();
|
||||||
|
|
||||||
console.log("webview", window?.plus?.webview.getWebviewById("wv").tokenScan);
|
console.log(123123, OAorMc());
|
||||||
const request = new Request({
|
const request = new Request({
|
||||||
baseURL:
|
baseURL:
|
||||||
OAorMc() === "OA"
|
OAorMc() === "MC"
|
||||||
? import.meta.env.VITE_API_URL
|
? import.meta.env.VITE_API_URL
|
||||||
: import.meta.env.VITE_API_OA_URL,
|
: import.meta.env.VITE_API_OA_URL,
|
||||||
timeout: 1000 * 60 * 5,
|
timeout: 1000 * 60 * 5,
|
||||||
|
Loading…
Reference in New Issue
Block a user