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

@ -89,7 +89,8 @@ 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;
const requestOptions =
(config as unknown as any).requestOptions ?? this.options.requestOptions;
const ignoreCancelToken = requestOptions?.ignoreCancelToken ?? true;
!ignoreCancelToken && axiosCanceler.addPending(config);

View File

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

View File

@ -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('');

View File

@ -340,7 +340,8 @@
[data-theme='dark'] {
.@{prefix-cls}-sider {
background-color: #1f1f1f;
}}
}
}
[data-theme='light'] {
.@{prefix-cls}-sider {

View File

@ -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} {