Forráskód Böngészése

fix: 插件作者显示问题修改

vera_min 1 éve
szülő
commit
fb3efbee6a

+ 1 - 0
src/views/system/monitor/plugin/edit.vue

@@ -125,6 +125,7 @@ const open = async (row: any) => {
 	showDialog.value = true
 	nextTick(() => {
 		Object.assign(formData, row)
+		formData.author = JSON.parse(row.author).join(",");
 	})
 }
 

+ 5 - 1
src/views/system/monitor/plugin/index.vue

@@ -36,7 +36,11 @@
 				<el-table-column label="插件类型" v-col="'types'" align="center" prop="types" />
 				<el-table-column label="功能类型" v-col="'handleType'" align="center" prop="handleType" />
 				<el-table-column label="说明" v-col="'description'" show-overflow-tooltip align="left" prop="description" />
-				<el-table-column label="作者" v-col="'author'" align="center" prop="author" />
+				<el-table-column label="作者" v-col="'author'" align="center" prop="author">
+					<template #default="scope">
+						{{JSON.parse(scope.row.author).join(" ")}}
+					</template>
+				</el-table-column>
 				<el-table-column label="状态" v-col="'status'" align="center" prop="status" width="80">
 					<template #default="scope">
 						<el-tag type="success" size="small" v-if="scope.row.status === 1">正常</el-tag>