fix: 编辑脚本按钮始终显示,任何状态都可编辑
This commit is contained in:
@@ -44,8 +44,8 @@
|
|||||||
<el-button size="small" @click="startEdit">编辑</el-button>
|
<el-button size="small" @click="startEdit">编辑</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-button size="small" type="primary" @click="configVisible=true; configTab='script'" v-if="selectedConfigId && !hasScript">编辑脚本</el-button>
|
<el-button size="small" @click="configVisible=true; configTab='script'" v-if="selectedConfigId">编辑脚本</el-button>
|
||||||
<el-button size="small" @click="configVisible=true" v-else-if="selectedConfigId">查看配置</el-button>
|
<el-button size="small" text @click="configVisible=true; configTab='config'" v-if="selectedConfigId && selectedConfigJson">查看JSON</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
@@ -194,7 +194,6 @@ const allResults = ref([])
|
|||||||
const pageParsed = ref({})
|
const pageParsed = ref({})
|
||||||
const expandedSet = reactive(new Set())
|
const expandedSet = reactive(new Set())
|
||||||
|
|
||||||
const hasScript = computed(() => !!selectedConfig.value?.scriptStoragePath)
|
|
||||||
const totalResults = computed(() => allResults.value.length)
|
const totalResults = computed(() => allResults.value.length)
|
||||||
|
|
||||||
// 始终从 allResults 按 URL 分组
|
// 始终从 allResults 按 URL 分组
|
||||||
|
|||||||
Reference in New Issue
Block a user