From 138ee3b11705d25fef8b48c90089277ab42faad3 Mon Sep 17 00:00:00 2001
From: tony <846249920@qq.com>
Date: Thu, 30 Mar 2023 20:51:20 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E5=8D=95=E5=B1=9E=E6=80=A7?=
=?UTF-8?q?=E4=B8=BA=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/components/Process/index.vue | 4 ++--
ruoyi-ui/src/utils/db.js | 8 +++++---
ruoyi-ui/src/views/tool/build/index.vue | 2 +-
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/ruoyi-ui/src/components/Process/index.vue b/ruoyi-ui/src/components/Process/index.vue
index 2725189f..27424b54 100644
--- a/ruoyi-ui/src/components/Process/index.vue
+++ b/ruoyi-ui/src/components/Process/index.vue
@@ -29,7 +29,7 @@
- 校验xml
+
查看xml
下载xml
下载svg
@@ -255,7 +255,7 @@ export default {
@import "~bpmn-js/dist/assets/bpmn-font/css/bpmn.css";
@import "~bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";
@import "~bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
-@import "~bpmn-js-bpmnlint/dist/assets/css/bpmn-js-bpmnlint.css";
+//@import "~bpmn-js-bpmnlint/dist/assets/css/bpmn-js-bpmnlint.css";
.view-mode {
.el-header, .el-aside, .djs-palette, .bjs-powered-by {
display: none;
diff --git a/ruoyi-ui/src/utils/db.js b/ruoyi-ui/src/utils/db.js
index 000d80da..69efdb5b 100644
--- a/ruoyi-ui/src/utils/db.js
+++ b/ruoyi-ui/src/utils/db.js
@@ -1,5 +1,3 @@
-import de from "element-ui/src/locale/lang/de";
-
const DRAWING_ITEMS = 'drawingItems'
const DRAWING_ITEMS_VERSION = '1.2'
const DRAWING_ITEMS_VERSION_KEY = 'DRAWING_ITEMS_VERSION'
@@ -22,7 +20,11 @@ export function getDrawingList() {
}
export function saveDrawingList(list) {
- localStorage.setItem(DRAWING_ITEMS, JSON.stringify(list))
+ if (JSON.stringify(list)){
+ localStorage.setItem(DRAWING_ITEMS, JSON.stringify(list))
+ }else {
+ localStorage.setItem(DRAWING_ITEMS, '[]')
+ }
}
export function getIdGlobal() {
diff --git a/ruoyi-ui/src/views/tool/build/index.vue b/ruoyi-ui/src/views/tool/build/index.vue
index 994bef5c..28e04d68 100644
--- a/ruoyi-ui/src/views/tool/build/index.vue
+++ b/ruoyi-ui/src/views/tool/build/index.vue
@@ -284,7 +284,7 @@ export default {
})
}else {
// 初始化表单设计器
- that.formConf = {};
+ // that.formConf = {};
if (formConfInDB) {
that.formConf = formConfInDB
}