Merge pull request #23 from hujinbin/main

fix: 去除启动的报错日志
This commit is contained in:
LOG1997
2024-11-26 09:53:04 +08:00
committed by GitHub
5 changed files with 4 additions and 5 deletions

View File

@@ -76,4 +76,4 @@
"vitest": "^1.6.0",
"vue-tsc": "^2.0.24"
}
}
}

View File

@@ -43,7 +43,6 @@ const addCount = () => {
</template>
<style scoped lang="scss">
// @import "@/style/global.scss";
.read-the-docs {
color: #888;
}

View File

@@ -217,7 +217,7 @@ watch(() => prizeList.value, (val: IPrizeConfig[]) => {
<span class="label-text">图片</span>
</div>
<select class="w-full max-w-xs select select-warning select-sm" v-model="item.picture">
<option v-if="item.picture.id" :value="{ id: '', name: '', url: '' }"><span></span></option>
<option v-if="item.picture.id" :value="{ id: '', name: '', url: '' }"></option>
<option disabled selected>选择一张图片</option>
<option v-for="picItem in localImageList" :key="picItem.id" :value="picItem">{{ picItem.name }}
</option>

View File

@@ -150,7 +150,7 @@ onMounted(() => {
<span class="label-text">图片</span>
</div>
<select class="flex-1 w-12 select select-warning select-sm" v-model="temporaryPrize.picture">
<option v-if="temporaryPrize.picture.id" :value="{ id: '', name: '', url: '' }"><span></span>
<option v-if="temporaryPrize.picture.id" :value="{ id: '', name: '', url: '' }">
</option>
<option disabled selected>选择一张图片</option>
<option class="w-auto" v-for="picItem in localImageList" :key="picItem.id" :value="picItem">{{

View File

@@ -67,7 +67,7 @@ export default defineConfig(({ mode }) => {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/style/global.scss";',
additionalData: '@use "@/style/global.scss" as *;',
},
},
// postcss: {