mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
💄 添加图标
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* ESLint 配置文件
|
||||
* @since Beta v0.9.3
|
||||
*/
|
||||
import { defineConfig } from "eslint/config";
|
||||
import eslintPluginJsonc from "eslint-plugin-jsonc";
|
||||
import eslintPluginJs from "@eslint/js";
|
||||
import eslintPluginTs from "typescript-eslint";
|
||||
@@ -11,7 +12,7 @@ import eslintConfigJson from "./eslint/jsonEslint.js";
|
||||
import eslintConfigVue from "./eslint/vueEslint.js";
|
||||
import eslintConfigYml from "./eslint/ymlEslint.js";
|
||||
|
||||
export default [
|
||||
export default defineConfig([
|
||||
eslintPluginJs.configs.recommended,
|
||||
...eslintPluginJsonc.configs["flat/recommended-with-jsonc"],
|
||||
...eslintPluginTs.configs.recommended,
|
||||
@@ -31,4 +32,4 @@ export default [
|
||||
".github",
|
||||
],
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
@@ -47,7 +47,11 @@
|
||||
icon="/icon/material/220005.webp"
|
||||
title="解锁传送点"
|
||||
/>
|
||||
<TurOverviewSub :text="modelValue.domainNumber" title="解锁秘境" />
|
||||
<TurOverviewSub
|
||||
:text="modelValue.domainNumber"
|
||||
icon="/UI/nav/userAbyssLab.webp"
|
||||
title="解锁秘境"
|
||||
/>
|
||||
<TurOverviewSub
|
||||
:text="modelValue.moonCulus"
|
||||
icon="/icon/material/107030.webp"
|
||||
|
||||
@@ -438,6 +438,7 @@ async function refresh(): Promise<void> {
|
||||
loadData.value = true;
|
||||
await showLoading.update("正在刷新首页数据");
|
||||
const indexRes = await recordReq.index(rfCk!, rfAccount, 1);
|
||||
console.log(indexRes);
|
||||
if ("retcode" in indexRes) {
|
||||
showSnackbar.error(`[${indexRes.retcode}] ${indexRes.message}`);
|
||||
await TGLogger.Error(JSON.stringify(indexRes));
|
||||
@@ -447,6 +448,7 @@ async function refresh(): Promise<void> {
|
||||
}
|
||||
await showLoading.update("正在获取角色列表");
|
||||
const listRes = await recordReq.character.list(rfCk!, rfAccount);
|
||||
console.log(listRes);
|
||||
if (!Array.isArray(listRes)) {
|
||||
showSnackbar.error(`[${listRes.retcode}] ${listRes.message}`);
|
||||
await TGLogger.Error(`[Character][refresh][${rfAccount.gameUid}] 获取角色列表失败`);
|
||||
@@ -460,6 +462,7 @@ async function refresh(): Promise<void> {
|
||||
const idList = listRes.map((i) => i.id.toString());
|
||||
await showLoading.update(`共${idList.length}个角色,正在获取角色详情`);
|
||||
const res = await recordReq.character.detail(rfCk!, rfAccount, idList);
|
||||
console.log(res);
|
||||
if ("retcode" in res) {
|
||||
showSnackbar.error(`[${res.retcode}] ${res.message}`);
|
||||
await TGLogger.Error(`[Character][refresh][${rfAccount.gameUid}] 获取角色数据失败`);
|
||||
|
||||
Reference in New Issue
Block a user