Feat: add $theme env

This commit is contained in:
unitwk 2024-01-23 10:46:50 +08:00
parent a43b2173b1
commit 9d7ed246b9

View File

@ -1,5 +1,7 @@
import { useAppConfigStore } from "@/stores/useAppConfigStore";
import axios from "axios";
const { getTheme } = useAppConfigStore();
class SandboxBridge {
[key: string | symbol | number]: any;
@ -8,6 +10,7 @@ class SandboxBridge {
// API
public $axios = axios;
public $realWindow = window;
public $theme = getTheme();
public $onMounted(callback: Function) {
this._addCallback("onMounted", callback);