Browse Source

标签路径跳转 折叠箭头和问字间距

liuQiang 1 year ago
parent
commit
59c46701db

+ 2 - 2
index.html

@@ -9,8 +9,8 @@
 		<link rel="icon" href="/favicon.ico">
 		<title>聚合智慧文档管理系统</title>
 		<!--引入onlyoffice组件-->
-		<script type="text/javascript" src="https://doc.jujutong.cloud:19443/web-apps/apps/api/documents/api.js" charset="utf-8" async></script>
-		<!-- <script type="text/javascript" src="http://192.168.1.28:19531/web-apps/apps/api/documents/api.js" charset="utf-8" async></script> -->
+		<!-- <script type="text/javascript" src="https://doc.jujutong.cloud:19443/web-apps/apps/api/documents/api.js" charset="utf-8" async></script> -->
+		<script type="text/javascript" src="http://192.168.1.28:19531/web-apps/apps/api/documents/api.js" charset="utf-8" async></script>
 		<!-- <script type="text/javascript" src="http://8.142.173.95:19531/web-apps/apps/api/documents/api.js" charset="utf-8" async></script> -->
 		<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
 		<style>

+ 22 - 0
src/components/PathLabel/LabelItem.vue

@@ -0,0 +1,22 @@
+<template>
+  <div>
+    / {{ name }} 
+  </div>
+</template>
+
+<script setup>
+import { onMounted, ref, toRaw, watch, inject } from "vue";
+const props = defineProps({
+  name: {
+    type: String,
+    default: "",
+  },
+  dirId: {
+    type: Number,
+    default: 0,
+  },
+});
+</script>
+
+<style lang="scss" scoped>
+</style>

+ 42 - 0
src/components/PathLabel/index.vue

@@ -0,0 +1,42 @@
+<template>
+  <div class="box">
+    <div v-for="(item,index) in toRaw(pathLabelData)" :key="item.dirId">
+      <LabelItem
+        :name="item.name"
+        @click="clickItem(item.dirId,index)"
+        :dirId="item.dirId"
+      ></LabelItem>
+    </div>
+  </div>
+</template>
+
+<script setup>
+import { onMounted, ref, toRaw, watch, inject } from "vue";
+import LabelItem from "@/components/PathLabel/LabelItem.vue";
+import { getDir } from "@/api/biz/dir.js";
+const props = defineProps({
+  pathLabelData: {
+    type: Array,
+    default: () => [],
+  },
+});
+const emit = defineEmits(["folderClick"]);
+watch(
+  () => props.pathLabelData,
+  (newValue) => {
+    console.log(111, newValue);
+  }
+);
+const clickItem = async (dirId,index) => {
+  const res = await getDir(dirId);
+  const row = res.data
+  // console.log("labelIndex", index);
+  emit("folderClick", row,null,null,index)
+};
+</script>
+
+<style lang="scss" scoped>
+.box {
+  display: flex;
+}
+</style>

+ 1 - 1
src/views/biz/recent/index.vue

@@ -876,7 +876,7 @@ const downLoadfile = () => {
 }
 .collapseItem_title {
   position: relative;
-  left: 40px;
+  left: 3%;
   color: #2e6bc8;
   font-family: Inter-Medium;
   font-size: 12px;

+ 1 - 1
src/views/collect/index.vue

@@ -750,7 +750,7 @@ const setIcon = (fileType) => {
 }
 .collapseItem_title {
   position: relative;
-  left: 40px;
+  left: 3%;
   color: #2e6bc8;
   font-family: Inter-Medium;
   font-size: 12px;

+ 76 - 32
src/views/department/MyFile.vue

@@ -142,14 +142,15 @@
                         <!-- 左侧 -->
                         <div style="display: flex;justify-content: space-around;align-items: center;margin-left: 10px;">
                             <!-- 前进后退 -->
-                            <div style="display: flex;justify-content: space-around;align-items: center;margin-right: 5px;" >
+                            <!-- <div style="display: flex;justify-content: space-around;align-items: center;margin-right: 5px;" >
                                 <img style="display:block;width: 11px;height: 11px;" :src="blueLeft" alt=""
                                     @click="arrowLift">
                                 <img style="display:block;width: 16px;height: 16px;" :src="grayRight" alt="">
-                            </div>
+                            </div> -->
                             <!-- 面包屑 -->
                             <div class="topPath">
-                                {{ topPath }}
+                                <span @click="backTopPath">{{ topPath }}</span>
+                                <PathLabel v-if="!loadingPreview" @folderClick="folderClick" :pathLabelData='pathLabelData'></PathLabel>
                                 <!-- <BreadMenu></BreadMenu> -->
                             </div>
                         </div>
@@ -435,6 +436,7 @@ import level3 from "@/assets/images/level3.png";
 import level4 from "@/assets/images/level4.png";
 import { ElMessage ,ElLoading } from 'element-plus'
 import ImgPreview from '@/components/ImgPreview/ImgPreview.vue'
+import PathLabel from '@/components/PathLabel/index.vue'
 import { preview } from "@/api/common/common.js";
 import historyList from "@/components/historyList/index.vue"; //选择文件发送的列表,历史版本
 import inputPassword from "./components/inputPassword.vue"; //选择文件发送的列表,历史版本
@@ -658,6 +660,8 @@ export default {
         const spaceName = ref()
         const isDept = ref(false)// 是否管理员
         const loadingUpload = ref(false);//文件上传加载
+        const pathLabelData = ref([
+        ])
         //控制宫格展示
         const isList = ref(false); //控制显示方式
         const changeShow = (fileGrids) => {
@@ -730,7 +734,7 @@ export default {
             addFolderAdd(addData) //加了这句代码界面会渲染两次
             thisFolder.value = row
             console.log('row2',row);
-            topPath.value = row.dirPath
+            // topPath.value = row.dirPath
             if(row.isEncrypt === "Y"){
                 getLeveldetailFn(row.encryptLevel)
             }else{
@@ -1157,7 +1161,16 @@ export default {
         }
 
         // 文件夹每行点击事件
-        function folderClick(row, list) {
+        function folderClick(row, list,e,jump) {
+            if(!pathLabelData.value[0]){
+                 // 创建标签
+                const addData = {
+                    path: '/myfile' + row.dirId,
+                    name: row.dirName,
+                    clickRowId: toRaw(row)
+                }
+                addFolderAdd(addData) 
+            }
             // 初始化分页数据
             tableBeEnd.value = true
             filePageNum.value = 1
@@ -1167,6 +1180,23 @@ export default {
             if(row){
                 backFolder.value = thisFolder.value
                 thisFolder.value = row;
+                if(pathLabelData.value[0]){
+                    // 有值就说明是二级及以后的数据
+                    const oldArr = toRaw(pathLabelData.value)
+                    // console.log('oldArr',oldArr);
+                    let newArr
+                    console.log('jump',jump);
+                    if(jump == undefined){
+                        newArr = oldArr.push({
+                          name:toRaw(row).dirName,
+                          dirId:toRaw(row).dirId
+                        })
+                    }else{ // jump有值说明是点击过来的 后面的要截取掉
+                        newArr = oldArr.splice(jump+1)
+                    }
+                    console.log('newArr',newArr);
+                    pathLabelData.value = JSON.parse(JSON.stringify(oldArr))
+                }
             }else{
                 row =thisFolder.value
             }
@@ -1177,7 +1207,7 @@ export default {
             }
             thisRole.value = row.dirRole?row.dirRole.split(','):[]
             // console.log('row1', toRaw(row));
-            topPath.value = row.dirPath
+            // topPath.value = row.dirPath
             // console.log('topPath',toRaw(topPath.value));
             newDirId.value = row.dirId
             newSpaceId.value = row.spaceId
@@ -1488,6 +1518,10 @@ export default {
             
             collects.value = true
         }
+        const backTopPath = ()=>{
+            pathLabelData.value = ([])
+            getAllTop()
+        }
         // 取消文件收藏
         const delCollect = async (row,isfolder)=>{
             const thisRow = toRaw(row)
@@ -1685,6 +1719,12 @@ export default {
                      myfile.getDir(newRow).then(res=>{
                         // console.log('tores',res);
                         thisFolder.value = res.data
+                        // 这里点的是一级目录 所以重新给pathLabelData赋值
+                        const labelItem = {
+                            name:res.data.dirName,
+                            dirId:res.data.dirId
+                        }      
+                        pathLabelData.value = [labelItem]
                         refreshFile()
                     })
                 }
@@ -1693,29 +1733,29 @@ export default {
 
         })
             // 监听路由变化
-        onBeforeRouteUpdate((to,from)=>{
-        console.log('to',to);
-        console.log('from',from);
-        if(to.name == 'department'){
-            loadingPreview.value = true
-            const thisdirId = to.params.dirId
-            console.log('thisdirId',thisdirId);
-            setTimeout(()=>{
-                if(thisdirId){
-                    myfile.getDir(thisdirId).then(res=>{
-                        console.log('tores',res);
-                        thisFolder.value = res.data
-                        refreshFile()
-                    })
-                }
-                loadingPreview.value = false
-            },500)
-        }
-        // docId = to.query.clickRowId
-        // console.log(docId, "doc");
-        // console.log(copyRow, "row");
-        // edit();
-        })
+        // onBeforeRouteUpdate((to,from)=>{
+        // console.log('to',to);
+        // console.log('from',from);
+        // if(to.name == 'department'){
+        //     loadingPreview.value = true
+        //     const thisdirId = to.params.dirId
+        //     console.log('thisdirId',thisdirId);
+        //     setTimeout(()=>{
+        //         if(thisdirId){
+        //             myfile.getDir(thisdirId).then(res=>{
+        //                 console.log('tores',res);
+        //                 thisFolder.value = res.data
+        //                 refreshFile()
+        //             })
+        //         }
+        //         loadingPreview.value = false
+        //     },500)
+        // }
+        // // docId = to.query.clickRowId
+        // // console.log(docId, "doc");
+        // // console.log(copyRow, "row");
+        // // edit();
+        // })
         return {
             getSpaceList,
             folderList,//文件夹的数据
@@ -1905,7 +1945,9 @@ export default {
             getLevelList,
             closeUpload,
             handleRemove,
-            loadingUpload
+            loadingUpload,
+            pathLabelData,
+            backTopPath
 
         }
     },
@@ -1924,7 +1966,8 @@ export default {
         SpaceBig,
         PlaceGridFolder,
         PalaceGridFile,
-        inputPassword
+        inputPassword,
+        PathLabel
     },
 }
 
@@ -2103,6 +2146,7 @@ p {
     background-color: #F6F7F9;
 
     .topPath {
+        display: flex;
         margin-left: 4px;
         cursor: pointer;
         color: #6F85B5;
@@ -2278,7 +2322,7 @@ p {
 }
 .file-title{
   color: #2E6BC8;
-  margin-left: 30px;
+  margin-left: 3%;
 }
 ::v-deep .el-collapse-item__arrow {
  position: relative;

+ 77 - 30
src/views/myfile/MyFile.vue

@@ -176,7 +176,8 @@
                             <!-- 面包屑 -->
                             <div class="topPath">
                                 <!-- <el-icon><ArrowDown /></el-icon> -->
-                                {{ topPath }}
+                                <span @click="backTopPath">{{ topPath }}</span>
+                                <PathLabel v-if="!loadingPreview" @folderClick="folderClick" :pathLabelData='pathLabelData'></PathLabel>
                                 <!-- <BreadMenu></BreadMenu> -->
                             </div>
                         </div>
@@ -468,6 +469,7 @@ import level3 from "@/assets/images/level3.png";
 import level4 from "@/assets/images/level4.png";
 import { ElMessage, ElLoading } from 'element-plus'
 import ImgPreview from '@/components/ImgPreview/ImgPreview.vue'
+import PathLabel from '@/components/PathLabel/index.vue'
 import { preview } from "@/api/common/common.js";
 import historyList from "@/components/historyList/index.vue"; //选择文件发送的列表,历史版本
 import inputPassword from "./components/inputPassword.vue"; //选择文件发送的列表,历史版本
@@ -680,6 +682,8 @@ export default {
         const tableTotal = ref(0)//表格数据总数
         const clickFileData = ref(null);
         let fileBig = ref(0);
+        const pathLabelData = ref([
+        ])
          //控制宫格展示
         const isList = ref(false); //控制显示方式
         const changeShow = (fileGrids) => {
@@ -753,7 +757,7 @@ export default {
             }
             addFolderAdd(addData)   //加了这句代码界面会渲染两次
             thisFolder.value = row
-            topPath.value = row.dirPath
+            // topPath.value = row.dirPath
             if (row.isEncrypt === "Y") {
                 getLeveldetailFn(row.encryptLevel)
             } else {
@@ -1322,7 +1326,18 @@ export default {
         }
 
         // 文件夹每行点击事件
-        function folderClick(row, list) {
+        function folderClick(row, list,e,jump) {
+            // console.log('rightRow',row);
+            // 如果label没有值说明点的是一级目录
+            if(!pathLabelData.value[0]){
+                 // 创建标签
+                const addData = {
+                    path: '/myfile' + row.dirId,
+                    name: row.dirName,
+                    clickRowId: toRaw(row)
+                }
+                addFolderAdd(addData) 
+            }
             // 初始化分页数据
             tableBeEnd.value = true
             filePageNum.value = 1
@@ -1332,6 +1347,23 @@ export default {
             if (row) {
                 backFolder.value = thisFolder.value
                 thisFolder.value = row;
+                if(pathLabelData.value[0]){
+                    // 有值就说明是二级及以后的数据
+                    const oldArr = toRaw(pathLabelData.value)
+                    // console.log('oldArr',oldArr);
+                    let newArr
+                    console.log('jump',jump);
+                    if(jump == undefined){
+                        newArr = oldArr.push({
+                          name:toRaw(row).dirName,
+                          dirId:toRaw(row).dirId
+                        })
+                    }else{ // jump有值说明是点击过来的 后面的要截取掉
+                        newArr = oldArr.splice(jump+1)
+                    }
+                    console.log('newArr',newArr);
+                    pathLabelData.value = JSON.parse(JSON.stringify(oldArr))
+                }
             } else {
                 row = thisFolder.value
             }
@@ -1340,7 +1372,7 @@ export default {
             } else {
                 thisFolderRole.value = null
             }
-            topPath.value = row.dirPath
+            // topPath.value = row.dirPath
             newDirId.value = row.dirId
             newSpaceId.value = row.spaceId
             clickFileData.value = row
@@ -1538,7 +1570,7 @@ export default {
         const arrowLift = async () => {
             // router.go(-1)
             // console.log(1);
-            topPath.value = backFolder.value.dirPath
+            // topPath.value = backFolder.value.dirPath
             // console.log('topPath',toRaw(topPath.value));
             newDirId.value = backFolder.value.parentId
             newSpaceId.value = backFolder.value.spaceId
@@ -1796,6 +1828,10 @@ export default {
             // console.log('query',query);
             // console.log('fileList',fileList.value);
         }
+        const backTopPath = ()=>{
+            pathLabelData.value = ([])
+            getAllTop()
+        }
         onMounted(() => {
             // if(!thisFolder.value){
             getAllTop()
@@ -1829,6 +1865,13 @@ export default {
                     myfile.getDir(newRow).then(res => {
                         // console.log('tores',res);
                         thisFolder.value = res.data
+                         // 这里点的是一级目录 所以重新给pathLabelData赋值
+                        const labelItem = {
+                            name:res.data.dirName,
+                            dirId:res.data.dirId
+                        }      
+                        pathLabelData.value = [labelItem]
+                        // console.log('pathLabelData',pathLabelData.value);
                         refreshFile()
                     })
                 }
@@ -1837,28 +1880,28 @@ export default {
 
         })
         // 监听路由变化
-        onBeforeRouteUpdate((to, from) => {
-            // console.log('to',to);
-            // console.log('from',from);
-            if (to.name == 'myfile') {
-                loadingPreview.value = true
-                const thisdirId = to.params.dirId
-                setTimeout(() => {
-                    if (thisdirId) {
-                        myfile.getDir(thisdirId).then(res => {
-                            console.log('tores', res);
-                            thisFolder.value = res.data
-                            refreshFile()
-                        })
-                    }
-                    loadingPreview.value = false
-                }, 500)
-            }
-            // docId = to.query.clickRowId
-            // console.log(docId, "doc");
-            // console.log(copyRow, "row");
-            // edit();
-        })
+        // onBeforeRouteUpdate((to, from) => {
+        //     console.log('to',to);
+        //     // console.log('from',from);
+        //     if (to.name == 'myfile') {
+        //         loadingPreview.value = true
+        //         const thisdirId = to.params.dirId
+        //         setTimeout(() => {
+        //             if (thisdirId) {
+        //                 myfile.getDir(thisdirId).then(res => {
+        //                     console.log('tores', res);
+        //                     thisFolder.value = res.data
+        //                     refreshFile()
+        //                 })
+        //             }
+        //             loadingPreview.value = false
+        //         }, 500)
+        //     }
+        //     // docId = to.query.clickRowId
+        //     // console.log(docId, "doc");
+        //     // console.log(copyRow, "row");
+        //     // edit();
+        // })
         return {
             getSpaceList,
             folderList,//文件夹的数据
@@ -2046,7 +2089,9 @@ export default {
             throttleSureUpload,
             getLevelList,
             levelList,
-            setTablelevel
+            setTablelevel,
+            pathLabelData,
+            backTopPath
         }
     },
     watch: {
@@ -2065,7 +2110,8 @@ export default {
         SpaceBig,
         PlaceGridFolder,
         PalaceGridFile,
-        inputPassword
+        inputPassword,
+        PathLabel
     },
 }
 
@@ -2251,6 +2297,7 @@ p {
     background-color: #F6F7F9;
 
     .topPath {
+        display: flex;
         margin-left: 4px;
         cursor: pointer;
         color: #6F85B5;
@@ -2430,7 +2477,7 @@ p {
 }
 .file-title{
     color: #2E6BC8;
-    margin-left: 30px;
+    margin-left: 3%;
 }
 ::v-deep .el-collapse-item__arrow {
   position: relative;

+ 75 - 31
src/views/publicment/MyFile.vue

@@ -147,7 +147,8 @@
                             </div> -->
                             <!-- 面包屑 -->
                             <div class="topPath">
-                                {{ topPath }}
+                                <span @click="backTopPath">{{ topPath }}</span>
+                                <PathLabel v-if="!loadingPreview" @folderClick="folderClick" :pathLabelData='pathLabelData'></PathLabel>
                                 <!-- <BreadMenu></BreadMenu> -->
                             </div>
                         </div>
@@ -443,6 +444,7 @@ import { getLeveldetail } from '../../api/level/level';
 import { encrypt, decrypt } from "@/utils/jsencrypt";
 import ordinaryList from "@/assets/images/ordinaryList.png";
 import ordinary from "@/assets/images/ordinary.png";
+import PathLabel from '@/components/PathLabel/index.vue'
 import fileStyle from "@/assets/images/fileStyle.png";
 import fileBox from "@/assets/images/fileBox.png";
 import Cookies from "js-cookie";
@@ -666,6 +668,8 @@ export default {
         const tableBeEnd = ref(true)//控制下拉是否到底
         const tableTotal = ref(0)//表格数据总数
         const isDept = ref(false)// 是否管理员
+        const pathLabelData = ref([
+        ])
         //控制宫格展示
         const isList = ref(false); //控制显示方式
         const changeShow = (fileGrids) => {
@@ -742,7 +746,7 @@ export default {
             addFolderAdd(addData) //加了这句代码界面会渲染两次
             thisFolder.value = row
             // console.log('row2',row);
-             topPath.value = row.dirPath
+            //  topPath.value = row.dirPath
             if(row.isEncrypt === "Y"){
                 getLeveldetailFn(row.encryptLevel)
             }else{
@@ -1163,7 +1167,16 @@ export default {
         }
 
         // 文件夹每行点击事件
-        function folderClick(row, list) {
+        function folderClick(row, list,e,jump) {
+            if(!pathLabelData.value[0]){
+                 // 创建标签
+                const addData = {
+                    path: '/myfile' + row.dirId,
+                    name: row.dirName,
+                    clickRowId: toRaw(row)
+                }
+                addFolderAdd(addData) 
+            }
             // 初始化分页数据
             tableBeEnd.value = true
             filePageNum.value = 1
@@ -1173,6 +1186,23 @@ export default {
             if(row){
                 backFolder.value = thisFolder.value
                 thisFolder.value = row;
+                if(pathLabelData.value[0]){
+                    // 有值就说明是二级及以后的数据
+                    const oldArr = toRaw(pathLabelData.value)
+                    // console.log('oldArr',oldArr);
+                    let newArr
+                    console.log('jump',jump);
+                    if(jump == undefined){
+                        newArr = oldArr.push({
+                          name:toRaw(row).dirName,
+                          dirId:toRaw(row).dirId
+                        })
+                    }else{ // jump有值说明是点击过来的 后面的要截取掉
+                        newArr = oldArr.splice(jump+1)
+                    }
+                    console.log('newArr',newArr);
+                    pathLabelData.value = JSON.parse(JSON.stringify(oldArr))
+                }
             }else{
                 row =thisFolder.value
             }
@@ -1182,8 +1212,8 @@ export default {
                 thisFolderRole.value = {}
             }
             thisRole.value = row.dirRole?row.dirRole.split(','):[]
-            console.log('row1', toRaw(row));
-            topPath.value = row.dirPath
+            // console.log('row1', toRaw(row));
+            // topPath.value = row.dirPath
             // console.log('topPath',toRaw(topPath.value));
             newDirId.value = row.dirId
             newSpaceId.value = row.spaceId
@@ -1681,6 +1711,10 @@ export default {
             oneOrTwo.value = 1
             folderCase.value = true
         }
+        const backTopPath = ()=>{
+            pathLabelData.value = ([])
+            getAllTop()
+        }
         onMounted(() => {
             getAllTop()
             getSpaceList()
@@ -1701,6 +1735,12 @@ export default {
                      myfile.getDir(newRow).then(res=>{
                         // console.log('tores',res);
                         thisFolder.value = res.data
+                        // 这里点的是一级目录 所以重新给pathLabelData赋值
+                        const labelItem = {
+                            name:res.data.dirName,
+                            dirId:res.data.dirId
+                        }      
+                        pathLabelData.value = [labelItem]
                         refreshFile()
                     })
                 }
@@ -1708,29 +1748,29 @@ export default {
             },500)
 
         })
-        onBeforeRouteUpdate((to,from)=>{
-        console.log('to',to);
-        console.log('from',from);
-        if(to.name == 'publicment'){
-            loadingPreview.value = true
-            const thisdirId = to.params.dirId
-            console.log('thisdirId',thisdirId);
-            setTimeout(()=>{
-                if(thisdirId){
-                    myfile.getDir(thisdirId).then(res=>{
-                        console.log('tores',res);
-                        thisFolder.value = res.data
-                        refreshFile()
-                    })
-                }
-                loadingPreview.value = false
-            },500)
-        }
-        // docId = to.query.clickRowId
-        // console.log(docId, "doc");
-        // console.log(copyRow, "row");
-        // edit();
-        })
+        // onBeforeRouteUpdate((to,from)=>{
+        // console.log('to',to);
+        // console.log('from',from);
+        // if(to.name == 'publicment'){
+        //     loadingPreview.value = true
+        //     const thisdirId = to.params.dirId
+        //     console.log('thisdirId',thisdirId);
+        //     setTimeout(()=>{
+        //         if(thisdirId){
+        //             myfile.getDir(thisdirId).then(res=>{
+        //                 console.log('tores',res);
+        //                 thisFolder.value = res.data
+        //                 refreshFile()
+        //             })
+        //         }
+        //         loadingPreview.value = false
+        //     },500)
+        // }
+        // // docId = to.query.clickRowId
+        // // console.log(docId, "doc");
+        // // console.log(copyRow, "row");
+        // // edit();
+        // })
         return {
             getSpaceList,
             folderList,//文件夹的数据
@@ -1920,7 +1960,9 @@ export default {
             getLevelList,
              closeUpload,
             handleRemove,
-            loadingUpload
+            loadingUpload,
+            pathLabelData,
+            backTopPath
         }
     },
     watch: {
@@ -1938,7 +1980,8 @@ export default {
         SpaceBig,
         PlaceGridFolder,
         PalaceGridFile,
-        inputPassword
+        inputPassword,
+        PathLabel
     },
 }
 
@@ -2118,6 +2161,7 @@ p {
 
     .topPath {
          margin-left: 4px;
+        display: flex;
         cursor: pointer;
         color: #6F85B5;
         font-size: 12px;
@@ -2286,7 +2330,7 @@ p {
 }
 .file-title{
   color: #2E6BC8;
-  margin-left: 30px;
+  margin-left: 3%;
 }
 ::v-deep .el-collapse-item__arrow {
  position: relative;

+ 4 - 4
vite.config.js

@@ -39,19 +39,19 @@ export default defineConfig(({
 			proxy: {
 				// https://cn.vitejs.dev/config/#server-proxy
 				'/dev-api': {
-					// target: 'http://192.168.1.28:8080/',
+					target: 'http://192.168.1.28:8080/',
 					// target: 'http://192.168.1.11:8080/',
 					// target: 'http://localhost:8080/',
 					// target:'http://192.168.1.28:8080/',
-					target:'http://8.142.173.95:19527',
+					// target:'http://8.142.173.95:19527',
 					changeOrigin: true,
 					rewrite: (p) => p.replace(/^\/dev-api/, '')
 				},
 				//websocket代理
 				'/websocket': {
 					// target:'ws://localhost:8080/websocket',
-					// target:'ws://192.168.1.28:8080/websocket',
-					target:'ws://8.142.173.95:19527/websocket',
+					target:'ws://192.168.1.28:8080/websocket',
+					// target:'ws://8.142.173.95:19527/websocket',
 					// target:'ws://192.168.1.11:8080/websocket',
 					changeOrigin: true,
 					rewrite: (p) => p.replace(/^\/websocket/, '')