提高数据利用率.....

This commit is contained in:
2025-11-05 14:29:55 +08:00
parent f0a3ba0dd8
commit 22917a6ff7
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="movielist">
<div class="movie" v-for="movie in data">
<div class="movie" v-for="movie in data" :key="movie.id">
<div class="img">
<img :src="movie.img" alt="">
</div>
@@ -15,7 +15,8 @@
</div>
<div class="btn-box">
<div class="btn">购买</div>
<div class="btn" :style="{ backgroundColor: movie.showStateButton.color }">{{ movie.showStateButton.content }}
</div>
</div>
</div>

View File

@@ -19,4 +19,7 @@ export default defineConfig({
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
});
server: {
host: "0.0.0.0",
},
});