Sfoglia il codice sorgente

fix:去除默认数据

hanyang 1 anno fa
parent
commit
59520b62f6

BIN
dist.zip


File diff suppressed because it is too large
+ 0 - 0
dist/assets/Home-B9Z8GfU0.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/Home-BZjjkOXr.css


+ 1 - 1
dist/assets/Login-CVAF_ryl.js → dist/assets/Login-BYYr7ehW.js

@@ -1 +1 @@
-import{u as F,r as _,a as h,b as s,o as c,c as i,d as p,e,w as t,f as k,F as I,M as B}from"./index-DM05Zk77.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const N={__name:"FormItem",setup(v){const d=F(),m=_(),a=h({username:"admin",password:"123456"}),n=_(!1),b=g=>{n.value=!0,setTimeout(()=>{B.success("登录成功"),d.push({path:"/home"}),n.value=!1},1e3)};return(g,o)=>{const u=s("icon-user"),w=s("a-input"),r=s("a-form-item"),V=s("a-input-password"),x=s("a-button"),y=s("a-form");return c(),i(I,null,[o[3]||(o[3]=p("div",{class:"form-title"},"音频标注检索平台",-1)),e(y,{ref_key:"refForm",ref:m,model:a,layout:"validate",style:{width:"calc(100% - 100px)"},onSubmitSuccess:b},{default:t(()=>[e(r,{field:"username"},{default:t(()=>[e(w,{modelValue:a.username,"onUpdate:modelValue":o[0]||(o[0]=l=>a.username=l),placeholder:"用户名"},{prefix:t(()=>[e(u)]),_:1},8,["modelValue"])]),_:1}),e(r,{field:"password"},{default:t(()=>[e(V,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=l=>a.password=l),placeholder:"密码",defaultVisibility:!0,"allow-clear":""},{prefix:t(()=>[e(u)]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(x,{loading:n.value,class:"submit-btn",style:{"background-color":"#7169df",color:"#fff"},"html-type":"submit"},{default:t(()=>o[2]||(o[2]=[k("登录 ")])),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])],64)}}},S=f(N,[["__scopeId","data-v-d35870d8"]]),C={class:"login"},L={class:"login-form"},M={__name:"Login",setup(v){return(d,m)=>(c(),i("div",C,[p("div",L,[e(S)])]))}},E=f(M,[["__scopeId","data-v-8c7524fe"]]);export{E as default};
+import{u as F,r as _,a as h,b as s,o as c,c as i,d as p,e,w as t,f as k,F as I,M as B}from"./index-CXhI8mjk.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const N={__name:"FormItem",setup(v){const d=F(),m=_(),a=h({username:"admin",password:"123456"}),n=_(!1),b=g=>{n.value=!0,setTimeout(()=>{B.success("登录成功"),d.push({path:"/home"}),n.value=!1},1e3)};return(g,o)=>{const u=s("icon-user"),w=s("a-input"),r=s("a-form-item"),V=s("a-input-password"),x=s("a-button"),y=s("a-form");return c(),i(I,null,[o[3]||(o[3]=p("div",{class:"form-title"},"音频标注检索平台",-1)),e(y,{ref_key:"refForm",ref:m,model:a,layout:"validate",style:{width:"calc(100% - 100px)"},onSubmitSuccess:b},{default:t(()=>[e(r,{field:"username"},{default:t(()=>[e(w,{modelValue:a.username,"onUpdate:modelValue":o[0]||(o[0]=l=>a.username=l),placeholder:"用户名"},{prefix:t(()=>[e(u)]),_:1},8,["modelValue"])]),_:1}),e(r,{field:"password"},{default:t(()=>[e(V,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=l=>a.password=l),placeholder:"密码",defaultVisibility:!0,"allow-clear":""},{prefix:t(()=>[e(u)]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(x,{loading:n.value,class:"submit-btn",style:{"background-color":"#7169df",color:"#fff"},"html-type":"submit"},{default:t(()=>o[2]||(o[2]=[k("登录 ")])),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])],64)}}},S=f(N,[["__scopeId","data-v-d35870d8"]]),C={class:"login"},L={class:"login-form"},M={__name:"Login",setup(v){return(d,m)=>(c(),i("div",C,[p("div",L,[e(S)])]))}},E=f(M,[["__scopeId","data-v-8c7524fe"]]);export{E as default};

File diff suppressed because it is too large
+ 1 - 1
dist/assets/index-CXhI8mjk.js


+ 1 - 1
dist/index.html

@@ -6,7 +6,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>音频标注检索</title>
     <script type="module" src="/config.js"></script>
-    <script type="module" crossorigin src="/assets/index-DM05Zk77.js"></script>
+    <script type="module" crossorigin src="/assets/index-CXhI8mjk.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-CGNM0Fu4.css">
   </head>
   <body>

+ 1 - 57
src/modules/Home/AsyncPath.vue

@@ -22,63 +22,7 @@
 import { ref, onMounted } from 'vue';
 import { Message } from '@arco-design/web-vue';
 import { getFileTree, syncData } from '../../apis/home';
-const options = ref([
-  {
-    value: 'beijing',
-    label: 'Beijing',
-    children: [
-      {
-        value: 'chaoyang',
-        label: 'ChaoYang',
-        children: [
-          {
-            value: 'datunli',
-            label: 'Datunli',
-            children: [
-              {
-                value: 'datunli',
-                label: 'Datunli'
-              }
-            ]
-          }
-        ]
-      },
-      {
-        value: 'haidian',
-        label: 'Haidian',
-        disabled: true
-      },
-      {
-        value: 'dongcheng',
-        label: 'Dongcheng'
-      },
-      {
-        value: 'xicheng',
-        label: 'Xicheng',
-        children: [
-          {
-            value: 'jinrongjie',
-            label: 'Jinrongjie'
-          },
-          {
-            value: 'tianqiao',
-            label: 'Tianqiao'
-          }
-        ]
-      }
-    ]
-  },
-  {
-    value: 'shanghai',
-    label: 'Shanghai',
-    children: [
-      {
-        value: 'huangpu',
-        label: 'Huangpu'
-      }
-    ]
-  }
-]);
+const options = ref([]);
 const current_path = ref('');
 const loading_tree = ref(false);
 const is_loading = ref(false);

Some files were not shown because too many files changed in this diff