refactor: ♻️ 重构devtools

This commit is contained in:
陈华春
2024-09-17 21:16:34 +08:00
parent 5f4834d41b
commit 02e0f98032

View File

@@ -34,8 +34,8 @@ export class DevTools {
private async loadScripts(window: Window, onload: () => void) {
const project = this.engine?.project.value;
const { __BASE_PATH__ = '/' } = project || {};
// const host = '';
const host = 'http://localhost:9527';
const host = '';
// const host = 'http://localhost:9527';
const now = Date.now();
const devtoolsPath = `${host}${__BASE_PATH__}${VUE_DEVTOOLS_PATH}?t=${now}`;
if (this.enabled === undefined) {