mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化
This commit is contained in:
parent
d380613ba1
commit
9cdfad9f16
@ -114,7 +114,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|||||||
import { Plus, Setting } from "@element-plus/icons-vue";
|
import { Plus, Setting } from "@element-plus/icons-vue";
|
||||||
import { marked } from "marked";
|
import { marked } from "marked";
|
||||||
import { useForm } from "@cool-vue/crud";
|
import { useForm } from "@cool-vue/crud";
|
||||||
import { isString, merge, template } from "lodash-es";
|
import { merge, template } from "lodash-es";
|
||||||
|
|
||||||
const { service, refs, setRefs } = useCool();
|
const { service, refs, setRefs } = useCool();
|
||||||
const Form = useForm();
|
const Form = useForm();
|
||||||
@ -195,8 +195,9 @@ function toSet(item: Eps.PluginInfoEntity) {
|
|||||||
|
|
||||||
service.plugin.info
|
service.plugin.info
|
||||||
.update({
|
.update({
|
||||||
...data,
|
config,
|
||||||
config
|
id: data.id,
|
||||||
|
status: data.status
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
ElMessage.success("修改成功");
|
ElMessage.success("修改成功");
|
||||||
|
Loading…
Reference in New Issue
Block a user