mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
⚡️ 一些优化
This commit is contained in:
@@ -213,6 +213,7 @@ async function getTokenWeb(cookie: string): Promise<void> {
|
||||
await TGLogger.Error("[tc-userBadge][getTokenWeb] 获取 cookie 失败");
|
||||
return;
|
||||
}
|
||||
await TGSqlite.saveAppData("cookie", JSON.stringify(cookieUser));
|
||||
showSnackbar({
|
||||
text: "登录成功!",
|
||||
color: "success",
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
/>
|
||||
</slot>
|
||||
<slot name="inner-text">
|
||||
<span>{{ modelValue.innerText }}</span>
|
||||
<span :title="modelValue.innerText">{{ modelValue.innerText }}</span>
|
||||
</slot>
|
||||
</div>
|
||||
</div>
|
||||
@@ -208,6 +208,13 @@ const props = defineProps<TItemBoxProps>();
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.tib-inner span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.tib-outer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
||||
@@ -101,10 +101,8 @@ onUnmounted(() => {
|
||||
justify-content: center;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
background: var(--box-bg-2);
|
||||
background-image: v-bind(bg);
|
||||
background: var(--common-shadow-t-4) v-bind(bg) no-repeat;
|
||||
background-position-x: right;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
@@ -150,5 +148,6 @@ onUnmounted(() => {
|
||||
|
||||
.tur-ws-sub :nth-last-child(2) {
|
||||
color: var(--tgc-yellow-1);
|
||||
font-family: var(--font-title);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -16,7 +16,7 @@ const props = defineProps<TwoConvertProps>();
|
||||
const textColor = computed(() => {
|
||||
if (!props.data || !props.data.days) return "var(--tgc-blue-2)";
|
||||
const day = new Date().getDay();
|
||||
if (props.data.days.includes(day)) return "var(--tgc-pink-1)";
|
||||
if (props.data.days.includes(day.toString())) return "var(--tgc-pink-1)";
|
||||
return "var(--tgc-blue-2)";
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user