fix: 🐛 修复 eslint 警告问题

This commit is contained in:
Ray.Hao
2025-04-04 23:50:18 +08:00
parent c1efba0a0a
commit 41c874092e
18 changed files with 372 additions and 274 deletions

View File

@@ -125,7 +125,7 @@ const handleSubmit = async () => {
setTimeout(() => {
uni.navigateBack();
}, 1500);
} catch (error) {
} catch {
toast.error("提交失败,请重试");
} finally {
submitting.value = false;

View File

@@ -95,7 +95,7 @@ const handleQuestionFeedback = () => {
uni.navigateTo({ url: "/pages/mine/feedback/index" });
};
// 建设中
const handleItemclick = (item: any) => {
const handleItemclick = () => {
toast.show("建设中...");
};
</script>

View File

@@ -63,12 +63,7 @@
</view>
</template>
<script setup lang="ts">
import UserAPI, {
type UserProfileVO,
UserProfileForm,
MobileBindingForm,
EmailBindingForm,
} from "@/api/system/user";
import UserAPI, { type UserProfileVO, UserProfileForm } from "@/api/system/user";
import FileAPI, { type FileInfo } from "@/api/file";
const originalSrc = ref<string>(""); //选取的原图路径

View File

@@ -126,7 +126,7 @@ const handleClearCache = async () => {
title: "清理成功",
icon: "success",
});
} catch (error) {
} catch {
uni.showToast({
title: "清理失败",
icon: "error",

View File

@@ -101,7 +101,7 @@ const getNetworkType = async () => {
? `${(navigator as any).connection.effectiveType || "未知"}`
: "不支持";
// #endif
} catch (error) {
} catch {
networkType.value = "获取失败";
signalStrength.value = "获取失败";
}
@@ -143,13 +143,13 @@ const startTest = async () => {
try {
const startTime = Date.now();
// #ifdef H5
const res = await uni.request({
await uni.request({
url: "/api/v1/auth/captcha",
timeout: 5000,
});
// #endif
// #ifndef H5
const resOther = await request({
await request({
url: "/api/v1/auth/captcha",
timeout: 5000,
});
@@ -159,7 +159,7 @@ const startTest = async () => {
pingResult.value.delay = delay;
pingResult.value.status = delay < 300 ? "正常" : "较慢";
} catch (error) {
} catch {
pingResult.value.delay = "--";
pingResult.value.status = "连接失败";
} finally {