Browse Source

修改排序

林旭祥 7 months ago
parent
commit
22dc0c1b20
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/components/OptionWindow/index.vue

+ 2 - 3
src/components/OptionWindow/index.vue

@@ -184,9 +184,8 @@ const areaList = computed(() => {
     return item.key == project.value.key;
   })
   if (list.length > 0) {
-    area = list[0].area;
+    area = list[0].area.sort((a: any, b: any) => a.key - b.key);
   }
-  //console.log("area", area)
   return area;
 });
 
@@ -316,7 +315,7 @@ const confirm = () => {
 };
 
 //手势赋值跳转
-const getGesture = async (myProject:any, data:any) => {
+const getGesture = async (myProject: any, data: any) => {
   await getClass();
   project.value = myProject;
   chooseArea.value = data.area.split(",");