feat: 粒子背景+动起来了
This commit is contained in:
@@ -1,13 +1,34 @@
|
||||
<script setup lang='ts'>
|
||||
|
||||
import {ref} from 'vue'
|
||||
import {storeToRefs} from 'pinia'
|
||||
import useStore from '@/store'
|
||||
|
||||
const prizeConfig = useStore().prizeConfig
|
||||
const prizeConfig=useStore().prizeConfig
|
||||
const {getPrizeConfig:localPrizeList}=storeToRefs(prizeConfig)
|
||||
|
||||
|
||||
const delAll = () => {
|
||||
prizeConfig.deleteAllPrizeConfig()
|
||||
}
|
||||
|
||||
const resetDefault = () => {
|
||||
prizeConfig.resetDefault()
|
||||
}
|
||||
|
||||
const print = () => {
|
||||
console.log(prizeConfig)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
List
|
||||
|
||||
<button class="btn btn-secondary" @click="delAll">全部删除</button>
|
||||
|
||||
<button class="btn btn-secondary" @click="resetDefault">默认</button>
|
||||
|
||||
|
||||
<button class="btn btn-secondary" @click="print">打印</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user