Browse Source

style: 修复eslint和stylelint (#3303)

Co-authored-by: DreamyTZK <i@tzki.cn>
Hannah Jensen 1 year ago
parent
commit
a9530877c0

+ 4 - 3
src/utils/http/axios/Axios.ts

@@ -88,8 +88,9 @@ export class VAxios {
 
     // Request interceptor configuration processing
     this.axiosInstance.interceptors.request.use((config: InternalAxiosRequestConfig) => {
-      // If cancel repeat request is turned on, then cancel repeat request is prohibited     
-      const requestOptions =  (config as unknown as any).requestOptions ?? this.options.requestOptions;
+      // If cancel repeat request is turned on, then cancel repeat request is prohibited
+      const requestOptions =
+        (config as unknown as any).requestOptions ?? this.options.requestOptions;
       const ignoreCancelToken = requestOptions?.ignoreCancelToken ?? true;
 
       !ignoreCancelToken && axiosCanceler.addPending(config);
@@ -202,7 +203,7 @@ export class VAxios {
     if (config.cancelToken) {
       conf.cancelToken = config.cancelToken;
     }
-    
+
     if (config.signal) {
       conf.signal = config.signal;
     }

+ 0 - 1
src/views/demo/feat/icon/index.vue

@@ -68,5 +68,4 @@
   import Icon from '@/components/Icon/Icon.vue';
   import { openWindow } from '@/utils';
   import { PageWrapper } from '@/components/Page';
-
 </script>

+ 0 - 2
src/views/demo/feat/menu-params/index.vue

@@ -16,8 +16,6 @@
 <script lang="ts" setup>
   import { useRouter } from 'vue-router';
   import { computed, ref, unref } from 'vue';
-
-  import { Input } from 'ant-design-vue';
   import { PageWrapper } from '@/components/Page';
 
   const value = ref('');

+ 7 - 6
src/views/form-design/components/VFormDesign/index.vue

@@ -338,13 +338,14 @@
   @prefix-cls: ~'@{namespace}-form-design';
 
   [data-theme='dark'] {
-  .@{prefix-cls}-sider{
-    background-color: #1f1f1f;
-  }}
+    .@{prefix-cls}-sider {
+      background-color: #1f1f1f;
+    }
+  }
 
   [data-theme='light'] {
-    .@{prefix-cls}-sider{
-    background-color: #fff;
-  }
+    .@{prefix-cls}-sider {
+      background-color: #fff;
+    }
   }
 </style>

+ 4 - 3
src/views/sys/lock/LockPage.vue

@@ -28,9 +28,9 @@
       <div :class="`${prefixCls}-entry`" v-show="!showDate">
         <div :class="`${prefixCls}-entry-content`">
           <div :class="`${prefixCls}-entry__header enter-x`">
-            <img :src="userinfo.avatar || headerImg" :class="`${prefixCls}-entry__header-img`" />
+            <img :src="userInfo.avatar || headerImg" :class="`${prefixCls}-entry__header-img`" />
             <p :class="`${prefixCls}-entry__header-name`">
-              {{ userinfo.realName }}
+              {{ userInfo.realName }}
             </p>
           </div>
           <InputPassword
@@ -102,7 +102,7 @@
 
   const { t } = useI18n();
 
-  const userinfo = computed(() => {
+  const userInfo = computed(() => {
     return userStore.getUserInfo || {};
   });
 
@@ -133,6 +133,7 @@
   }
 </script>
 <style lang="less" scoped>
+  /* stylelint-disable media-query-no-invalid */
   @prefix-cls: ~'@{namespace}-lock-page';
 
   .@{prefix-cls} {