diff --git a/package.json b/package.json
index 2a47502..dab9b8a 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
+ "@element-plus/icons-vue": "^2.3.1",
"axios": "^1.7.9",
"element-plus": "^2.9.3",
"nprogress": "^0.2.0",
diff --git a/router/router.js b/router/router.js
index 759272a..b491f5f 100644
--- a/router/router.js
+++ b/router/router.js
@@ -4,12 +4,17 @@ import NProgress from 'nprogress'
import 'nprogress/nprogress.css'// nprogress样式文件
import UI_1 from "../src/components/Aside/UI_1.vue";
+import UI_2 from "../src/components/Aside/UI_2.vue";
const routes = [
{
path: '/UI_1',
component: UI_1
},
+ {
+ path: '/UI_2',
+ component: UI_2
+ },
];
const router = createRouter({
diff --git a/src/App.vue b/src/App.vue
index 67d2df7..58ea7cf 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -6,7 +6,12 @@
\ No newline at end of file
diff --git a/src/components/JS/RequestAPI.js b/src/components/JS/RequestAPI.js
index 50b3449..b167d75 100644
--- a/src/components/JS/RequestAPI.js
+++ b/src/components/JS/RequestAPI.js
@@ -1,8 +1,23 @@
import axios from "axios";
import {reactive, ref} from "vue";
+import {ElNotification} from "element-plus";
const RootURL = '/api';// /api
export const Api = reactive({
GetALicense: ref(RootURL + '/ActivationCode'),
+ GetBSVData: ref(RootURL + '/UI_2/GetData'),
+ GetBSVDownload: ref(RootURL + '/UI_2/Download'),
+ GetBSVUpload: ref(RootURL + '/UI_2/Upload'),
+ GetBSVDelete: ref(RootURL + '/UI_2/DeleteData'),
+ UserVerify: ref(RootURL + '/UserVerify'),
+ GetStarter: ref(RootURL + '/Starter/GetStarter'),
+ ReviseStarter: ref(RootURL + '/Starter/ReviseStarter'),
+ UpStarter: ref(RootURL + '/Starter/UploadStarter'),
+});
+export const User = reactive({
+ User:ref('-1'),
+ Pwd:ref('-1'),
+ Verify:false,
+ Code:0,
})
export function RequestPost(url, data,call){
axios.post(url,data).then(res=>{
@@ -10,4 +25,10 @@ export function RequestPost(url, data,call){
}).catch(err=>{
console.error(err);
})
+}
+
+export function VlClose(){
+ if(User.Code === 0){
+ User.Verify = true;
+ }
}
\ No newline at end of file
diff --git a/src/components/Main/Home.vue b/src/components/Main/Home.vue
index 91f3b24..a860e31 100644
--- a/src/components/Main/Home.vue
+++ b/src/components/Main/Home.vue
@@ -5,13 +5,13 @@
:ellipsis="false"
@select="handleSelect"
style="height: 80px;"
+ default-active="/UI_1"
>
-
-
+
+ 注册服务
+
+
+ BS更新服务
@@ -19,18 +19,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main.js b/src/main.js
index 4337566..56de66a 100644
--- a/src/main.js
+++ b/src/main.js
@@ -5,8 +5,11 @@ import '@arco-design/web-vue/dist/arco.css';
import router from "../router/router.js";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
-
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App);
+for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+ app.component(key, component)
+}
app.use(ArcoVue);
app.use(router);
app.use(ElementPlus)
diff --git a/vite.config.js b/vite.config.js
index 07450d7..4426b14 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,12 +8,12 @@ export default defineConfig({
port: 5174,
proxy: {
'/api': {
- target: 'http://127.0.0.1:8888/',
+ target: 'http://127.0.0.1:9999/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
},
'/sock': {
- target: 'ws://192.168.1.24:8888/',
+ target: 'ws://192.168.1.24:9999/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/sock/, '')
},