|
@@ -13,10 +13,18 @@ import ws from "@/store/ws.js";
|
|
import base64 from '@/store/base64';
|
|
import base64 from '@/store/base64';
|
|
let vuexStore = require('@/store/$t.mixin.js');
|
|
let vuexStore = require('@/store/$t.mixin.js');
|
|
|
|
|
|
|
|
+// 创建 script 元素,并指定 vConsole 的 CDN 链接
|
|
|
|
+const script = document.createElement('script');
|
|
|
|
+script.src = 'https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js';
|
|
|
|
+script.onload = () => {
|
|
|
|
+ // 创建一个 vConsole 实例
|
|
|
|
+ new window.VConsole();
|
|
|
|
+};
|
|
|
|
+document.head.appendChild(script);
|
|
|
|
+
|
|
// 引入数字人请求封装
|
|
// 引入数字人请求封装
|
|
require('./utils/request/index')(app)
|
|
require('./utils/request/index')(app)
|
|
|
|
|
|
-
|
|
|
|
// import req from '@/common/request/apis.js'
|
|
// import req from '@/common/request/apis.js'
|
|
// console.log('12213', req.userInfo.info);
|
|
// console.log('12213', req.userInfo.info);
|
|
async function bootstrap() {
|
|
async function bootstrap() {
|
|
@@ -45,4 +53,4 @@ async function bootstrap() {
|
|
// #endif
|
|
// #endif
|
|
}
|
|
}
|
|
|
|
|
|
-bootstrap();
|
|
|
|
|
|
+bootstrap();
|