feat: 修复 eslint 报错, 删除多余生成文件
- 删除 vite.config.ts 自动生成的 vite.config.ts.timestamp... - eslint 报错修复
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
import { ref, toRefs } from 'vue';
|
||||
import RateCharacter from './RateCharacter.vue';
|
||||
|
||||
const isPreview = defineModel('isPreview', { default: false });
|
||||
const isPreview = defineModel('isPreview', { default: false, type: Boolean });
|
||||
const props = defineProps({
|
||||
element: {
|
||||
type: Object
|
||||
@@ -53,13 +53,13 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
// answer 的答案以 矩阵形式存储, 例如 [4,7],上层更新答案的时候也容易
|
||||
const rates = defineModel('rates', { default: [] });
|
||||
const rates = defineModel('rates', { default: [], type: Array });
|
||||
const rate = ref(0);
|
||||
|
||||
// 不知道的 BUG ,开始的时候不能重置颜色。 故如此
|
||||
setTimeout(() => {
|
||||
rate.value = localStorage.getItem(props.sn);
|
||||
console.log(`rate value:`, rate.value);
|
||||
// console.log(`rate value:`, rate.value);
|
||||
// if (rates.value[0] !== undefined) {
|
||||
// console.log(`rates value:`, rates.value);
|
||||
// rate.value = rates.value[0]
|
||||
|
||||
Reference in New Issue
Block a user