Sfoglia il codice sorgente

feat: 调整发起审批快捷入口样式,审批流创建成功后,清空本地store缓存

luoyali 1 anno fa
parent
commit
55ed1d6655

+ 1 - 1
src/store/modules/flow.ts

@@ -25,7 +25,7 @@ export const useFlowStore = defineStore({
 
 			cacheSwitch: false, // 缓存开关
 			modelContent: '', // 流程模型定义JSON内容
-			processForm: '', // 流程定义表单
+			processForm: '[]', // 流程定义表单
 			processSetting: {
 				allowRevocation: true, // 允许撤销审批中的申请
 				allowRevocationDay: true, // 允许撤销指定天内通过的审批

+ 2 - 2
src/views/approve/launch/index.vue

@@ -243,13 +243,13 @@ onMounted(() => {
 	cursor: pointer;
 	border-radius: 10px;
 	text-align: center;
-	padding: 0 0 15px;
+	padding: 0 0 6px;
 	&:hover {
 		background-color: #f5f4f3;
 	}
 	&-icon {
 		font-size: 32px;
-		margin-bottom: 4px;
+		padding: 9px 0 4px;
 	}
 	&-title {
 		font-size: 16px;

+ 1 - 0
src/views/flow/create/index.vue

@@ -88,6 +88,7 @@ const removeCurTab = () => {
 			} else {
 				router.push('/')
 			}
+      flowStore.$reset()
 		})
 }
 const submitHandler = async () => {