mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-03-13 16:36:57 +08:00
Feat: add $theme env
This commit is contained in:
parent
a43b2173b1
commit
9d7ed246b9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user