From 9d7ed246b9511c77446cb57457184e47274d9e8f Mon Sep 17 00:00:00 2001 From: unitwk Date: Tue, 23 Jan 2024 10:46:50 +0800 Subject: [PATCH] Feat: add $theme env --- frontend/src/tools/sandbox.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/tools/sandbox.ts b/frontend/src/tools/sandbox.ts index 4812d37a..c778089a 100644 --- a/frontend/src/tools/sandbox.ts +++ b/frontend/src/tools/sandbox.ts @@ -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);