mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 08:57:14 +08:00
fix: code generator preview issue (#73)
This commit is contained in:
@@ -157,6 +157,9 @@ const selectedKeys = ref()
|
||||
// 选择文件预览
|
||||
const onSelectPreview = (keys: (string | number)[]) => {
|
||||
if (typeof keys[0] === 'string') {
|
||||
if (keys[0] === selectedKeys.value) {
|
||||
return
|
||||
}
|
||||
currentPreview.value = genPreviewList.value.filter((p) => p.fileName === keys[0])[0]
|
||||
selectedKeys.value = keys
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user