style: 修复eslint和stylelint (#3303)

Co-authored-by: DreamyTZK <i@tzki.cn>
This commit is contained in:
Hannah Jensen 2023-11-20 16:57:23 +08:00 committed by GitHub
parent d7472b8a2e
commit a9530877c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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

View File

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