소스 검색

代码格式化

林旭祥 3 주 전
부모
커밋
86d952a804
1개의 변경된 파일7개의 추가작업 그리고 15개의 파일을 삭제
  1. 7 15
      src/views/gesture/index.vue

+ 7 - 15
src/views/gesture/index.vue

@@ -2,16 +2,8 @@
   <div class="gesture">
     <Header :showTool="true" @confirmExit="getLogout" :key="key"></Header>
     <div class="menu" v-if="projectList.length" :key="projectList.length">
-      <swiper
-        :slides-per-view="5"
-        :space-between="0"
-        :loop="true"
-        :observe-parents="true"
-        :observer="true"
-        :centered-slides="true"
-        :modules="[Navigation]"
-        @swiper="onSwiper"
-      >
+      <swiper :slides-per-view="5" :space-between="0" :loop="true" :observe-parents="true" :observer="true"
+        :centered-slides="true" :modules="[Navigation]" @swiper="onSwiper">
         <swiper-slide v-for="(item, index) in projectList" :key="index" @click="getOption(item)">
           <div class="li">
             <div>
@@ -182,7 +174,7 @@ const confirm = (myProject?: any) => {
 const getLogout = async () => {
   if (import.meta.env.DEV) {
     proxy?.$modal.msgSuccess('测试环境免密退出');
-    await proxy?.$http.common.logout({}).then((res: any) => {});
+    await proxy?.$http.common.logout({}).then((res: any) => { });
     proxy?.$modal?.closeLoading();
     //清空缓存
     //localStorage.clear();
@@ -203,7 +195,7 @@ const getLogout = async () => {
           };
           proxy?.$http.common.checkPassword(params).then(async (res: any) => {
             if (res.status === 200 || res.status === 1) {
-              await proxy?.$http.common.logout({}).then((res: any) => {});
+              await proxy?.$http.common.logout({}).then((res: any) => { });
               proxy?.$modal?.closeLoading();
               //清空缓存
               // localStorage.clear();
@@ -217,7 +209,7 @@ const getLogout = async () => {
           });
         }
       })
-      .finally(() => {});
+      .finally(() => { });
   }
 };
 
@@ -254,7 +246,7 @@ const getUserInfo = () => {
     //保存信息
     if (res.data.length) {
       let myData = res.data[0];
-      let info = JSON.stringify(myData);
+      let info: any = JSON.stringify(myData);
       localStorage.setItem('userInfo', info);
       //修改收藏夹图标
       proxy?.$utils.setFavicon(myData?.logo_url);
@@ -272,7 +264,7 @@ const getDevice = async () => {
     startDevice({ deviceid: deviceid });
   } else {
     proxy?.$modal.msgError(`缺少设备信息请重新登录!`);
-    await proxy?.$http.common.logout({}).then((res: any) => {});
+    await proxy?.$http.common.logout({}).then((res: any) => { });
     proxy?.$modal?.closeLoading();
     //清空缓存
     // localStorage.clear();