Skip to content

Commit 53cbc41

Browse files
committed
fix: default css name
1 parent 28b2eba commit 53cbc41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/src/components/CodemirrorEditor/CssEditor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import { themeOptions } from '@md/shared'
23
import { Edit3, Plus, X } from 'lucide-vue-next'
34
import { useDisplayStore, useStore } from '@/stores'
45
@@ -102,7 +103,7 @@ function delTab() {
102103
}
103104
104105
function addHandler() {
105-
addInputVal.value = `方案${store.cssContentConfig.tabs.length + 1}`
106+
addInputVal.value = `方案${store.cssContentConfig.tabs.length - themeOptions.length + 1}`
106107
isOpenAddDialog.value = true
107108
}
108109

0 commit comments

Comments
 (0)