Skip to content

Commit 57f4ded

Browse files
committed
fix: tab add component
1 parent 389b304 commit 57f4ded

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

frontend/src/views/dashboard/components/component-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const COMPONENT_LIST = [
2727
collisionActive: false,
2828
moveInActive: false,
2929
moveOutActive: false,
30-
activeTabName: 'tab',
30+
activeTabName: null,
3131
propValue: [
3232
{
3333
name: 'tab',

frontend/src/views/dashboard/components/sq-tab/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ const titleStyle = (itemName: string) => {
161161
162162
onMounted(() => {
163163
currentInstance = getCurrentInstance()
164-
if (configItem.value.propValue.length > 0) {
164+
if (configItem.value.propValue.length > 0 && !configItem.value.activeTabName) {
165165
configItem.value.activeTabName = configItem.value.propValue[0].name
166-
console.log('test1')
167166
}
168167
})
169168

0 commit comments

Comments
 (0)