🔥 移除部分TODO

This commit is contained in:
目棃
2024-09-07 09:55:59 +08:00
parent fb1b46859a
commit 2edbf77824
8 changed files with 3 additions and 9 deletions

View File

@@ -128,7 +128,6 @@ function parseNamecard(desc: string): string {
function parseDesc(desc: string, inQuote: boolean = false): string[] {
let res = desc.replace(/。/g, "。\n");
res = res.replace(//g, "\n");
// todo 正则优化
if (props?.data?.index !== 187) {
res = res.replace(//g, "\n");
res = res.replace(//g, "\n");

View File

@@ -100,7 +100,6 @@ async function deleteCollect(item: TGApp.Sqlite.UserCollection.UFCollection): Pr
});
return;
}
// todo,这边暂时将默认force设为false后续需要根据需求修改
const resD = await TSUserCollection.deleteCollect(item.title, false);
if (resD) {
showSnackbar({

View File

@@ -50,7 +50,6 @@
<div class="uc-top-title">
<span v-if="user">
{{ user.nickname }} UID{{ user.gameUid }} 更新于 {{ getUpdateTime() }}
<!-- todo 展示筛选条件 -->
</span>
<span v-else> 暂无数据 </span>
</div>

View File

@@ -39,7 +39,6 @@ const id = useRoute().params.id.toString() ?? "0";
const showSelect = ref(false);
const resetSelect = ref(false);
const cardsInfo = ref(AppCharacterData);
// todo这边赋予了默认值需要经过测试
const curItem = ref<TGApp.App.Character.WikiBriefInfo>({
id: 0,
contentId: 0,

View File

@@ -42,7 +42,6 @@ const id = useRoute().params.id.toString() ?? "0";
const showSelect = ref(false);
const resetSelect = ref(false);
const cardsInfo = ref(AppWeaponData);
// todo这边赋予了默认值需要经过测试
const curItem = ref<TGApp.App.Weapon.WikiBriefInfo>({
id: 0,
contentId: 0,

View File

@@ -1,5 +1,4 @@
<template>
<!-- todo ui 优化 -->
<ToLoading v-model="loading" :title="loadingTitle" :subtitle="loadingSub" />
<div class="config-box">
<TcInfo />

View File

@@ -247,8 +247,7 @@ async function freshPostData(): Promise<void> {
function freshCurForum(newVal: string): void {
const forum = forumList[curGameLabel.value];
// todo这边需要优化逻辑以经过测试目前暂时ignore
// @ts-expect-error-next-line Vue: Element implicitly has an any type because expression of type string can't be used to index type
// @ts-expect-error-next-line
curForum.value = forum[newVal];
}

View File

@@ -11,7 +11,8 @@
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["DOM", "ESNext"],
"types": ["vite/client", "node", "color-convert", "js-md5", "uuid", "ajv"],
"skipLibCheck": true,
"types": ["vite/client", "node", "color-convert", "js-md5", "uuid"],
"allowSyntheticDefaultImports": true,
"composite": true
},