diff --git a/package-lock.json b/package-lock.json index 9b42cb7d0..0a5b2867e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1335,6 +1335,11 @@ "has-flag": "^3.0.0" } }, + "three": { + "version": "0.126.1", + "resolved": "http://192.168.250.101:4873/three/-/three-0.126.1.tgz", + "integrity": "sha1-z05OUgYP2VL28NVEDL1CLGa8S+c=" + }, "to-fast-properties": { "version": "2.0.0", "resolved": "http://192.168.250.101:4873/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -1349,6 +1354,11 @@ "is-number": "^7.0.0" } }, + "troisjs": { + "version": "0.1.19", + "resolved": "http://192.168.250.101:4873/troisjs/-/troisjs-0.1.19.tgz", + "integrity": "sha1-zQGFZQGu91Uwhe2AnynUTNGS3X4=" + }, "type": { "version": "1.2.0", "resolved": "http://192.168.250.101:4873/type/-/type-1.2.0.tgz", diff --git a/package.json b/package.json index 4bc86a6b6..c8f06d063 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "path-to-regexp": "^6.2.0", "resize-observer-polyfill": "^1.5.1", "screenfull": "^5.1.0", + "three": "^0.126.1", + "troisjs": "^0.1.19", "v-contextmenu": "^3.0.0-alpha.4", "vue": "^3.0.7", "vue-i18n": "^9.0.0", diff --git a/src/main.ts b/src/main.ts index 5f4a49ee3..28e54a0e9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,6 +2,7 @@ import { createApp } from 'vue' import App from './App.vue' import router from './router' import store from './store' +import { TroisJSVuePlugin } from 'troisjs' // 内置ElementPlus import ElementPlus from 'element-plus' @@ -41,7 +42,7 @@ export const getServerConfig = async (): Promise => { return axios({ baseURL: "", method: "get", - url: (app.config.globalProperties.$baseUrl || "/manages/") + "serverConfig.json" + url: (app.config.globalProperties.$baseUrl || "/") + "serverConfig.json" }).then(({ data: config }) => { let $config = app.config.globalProperties.$config // 自动注入项目配置 @@ -64,6 +65,7 @@ getServerConfig().then(() => { .use(i18n) .use(ElementPlus) .use(VXETable) + .use(TroisJSVuePlugin) .mount('#app') }) diff --git a/src/views/welcome.vue b/src/views/welcome.vue index 778a03c6a..02f4d0a57 100644 --- a/src/views/welcome.vue +++ b/src/views/welcome.vue @@ -1,26 +1,120 @@