diff --git a/src/main.js b/src/main.js index baed7a0..5bda438 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import { createPinia } from "pinia"; import ElementPlus from "element-plus"; //引入element-plus库 import * as ElementPlusIconsVue from "@element-plus/icons-vue"; +import zhCn from 'element-plus/dist/locale/zh-cn.mjs' import { ElMessage } from "element-plus"; import VForm3 from "vform3-builds"; //引入VForm3库 @@ -89,4 +90,9 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.directive("permission", permission); -app.use(ElementPlus).use(VForm3).use(createPinia()).use(router).mount("#app"); +app + .use(ElementPlus, { locale: zhCn }) + .use(VForm3) + .use(createPinia()) + .use(router) + .mount("#app"); diff --git a/src/router/index.js b/src/router/index.js index af371a2..c52e594 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -41,7 +41,7 @@ const routes = [ name: "ProjectManage", meta: { title: "项目管理" }, }, - + // 规则管理 { path: "/dc/rule", @@ -49,8 +49,8 @@ const routes = [ name: "rule", meta: { title: "规则管理" }, }, - // 元数据管理 - { + // 元数据管理 + { path: "/dc/metaData", component: () => import("../views/metaData/index.vue"), name: "metaData", @@ -58,36 +58,36 @@ const routes = [ }, //清洗任务 { - path: "/dc/cleaningTask", - component: () => import("../views/cleaningTask/index.vue"), - name: "cleaningTask", - meta: { title: "清洗任务" }, - }, - //服务接口 - { - path: "/dc/serviceInterface", - component: () => import("../views/serviceInterface/index.vue"), - name: "serviceInterface", - meta: { title: "服务接口" }, - }, - { - path: "/dc/configurefields", - component: () => import("../views/configurefields/index.vue"), - name: "configurefields", - meta: { title: "配置字段" }, - }, - { - path: "/dc/addprovide", - component: () => import("../views/addprovide/index.vue"), - name: "addprovide", - meta: { title: "新增服务接口" }, - }, - { - path: "/dc/field", - component: () => import("../views/field/index.vue"), - name: "field", - meta: { title: "字段管理" }, - }, + path: "/dc/cleaningTask", + component: () => import("../views/cleaningTask/index.vue"), + name: "cleaningTask", + meta: { title: "清洗任务" }, + }, + //服务接口 + { + path: "/dc/serviceInterface", + component: () => import("../views/serviceInterface/index.vue"), + name: "serviceInterface", + meta: { title: "服务接口" }, + }, + { + path: "/dc/configurefields", + component: () => import("../views/configurefields/index.vue"), + name: "configurefields", + meta: { title: "配置字段" }, + }, + { + path: "/dc/addprovide", + component: () => import("../views/addprovide/index.vue"), + name: "addprovide", + meta: { title: "新增服务接口" }, + }, + { + path: "/dc/field", + component: () => import("../views/field/index.vue"), + name: "field", + meta: { title: "字段管理" }, + }, ], }, { @@ -105,10 +105,10 @@ const routes = [ title: "编辑器", }, component: () => import("../views/codemirror/index.vue"), - }, + }, { path: "/data-flow-editor", - name: "data-flow-editor", + name: "data-flow-editor", mete: { title: "数据中台", }, diff --git a/src/views/field/index.vue b/src/views/field/index.vue index c54f40d..b33558e 100644 --- a/src/views/field/index.vue +++ b/src/views/field/index.vue @@ -3,17 +3,6 @@ - - -