🚸 部分资源缓存

This commit is contained in:
目棃
2025-02-01 19:03:06 +08:00
parent 4cbd5c516a
commit ade05d8dab
5 changed files with 9 additions and 16 deletions

View File

@@ -1,11 +1,11 @@
<template>
<div class="tur-hs-box">
<div class="bg">
<TMiImg :src="data.bg" alt="bg" :ori="true" />
<img :src="data.bg" alt="bg" />
</div>
<div class="tur-hs-top">
<div class="tur-hs-title">
<TMiImg :src="data.comfortIcon" alt="icon" :ori="true" />
<img :src="data.comfortIcon" alt="icon" />
<span>{{ data.comfortName }}</span>
</div>
<div class="tur-hs-name">{{ data.name }}</div>
@@ -31,8 +31,6 @@
</div>
</template>
<script lang="ts" setup>
import TMiImg from "@comp/app/t-mi-img.vue";
defineProps<{ data: TGApp.Sqlite.Record.Home }>();
</script>
<style lang="css" scoped>

View File

@@ -1,7 +1,7 @@
<template>
<div class="tur-ri-box">
<div class="tur-ri-avatar">
<TMiImg :ori="true" :src="props.modelValue.avatar" alt="avatar" />
<img :src="props.modelValue.avatar" alt="avatar" />
</div>
<div class="tur-ri-content">
<div class="tur-ri-title">
@@ -16,8 +16,6 @@
</div>
</template>
<script lang="ts" setup>
import TMiImg from "@comp/app/t-mi-img.vue";
type TurRoleInfoProps = { uid: number; modelValue: TGApp.Sqlite.Record.Role };
const props = defineProps<TurRoleInfoProps>();

View File

@@ -1,16 +1,16 @@
<template>
<div class="tur-ws-box">
<div class="tur-ws-bg">
<TMiImg :ori="true" :src="data.bg" alt="bg" />
<img :src="data.bg" alt="bg" />
</div>
<div class="tur-ws-icon">
<TMiImg :ori="true" :src="icon" alt="icon" />
<img :src="icon" alt="icon" />
</div>
<div class="tur-ws-content">
<div class="tur-ws-title">
<span>{{ data.name }}</span>
<span v-if="data.offering" class="tur-ws-sub">
<TMiImg :src="data.offering.icon" alt="offer" :ori="true" />
<img :src="data.offering.icon" alt="offer" />
<span>{{ data.offering.name }}等级</span>
<span>{{ data.offering.level }}</span>
<span></span>
@@ -42,7 +42,6 @@
</div>
</template>
<script lang="ts" setup>
import TMiImg from "@comp/app/t-mi-img.vue";
import { storeToRefs } from "pinia";
import { computed } from "vue";