Browse Source

feat: 修复提示语显示隐藏

luoyali 10 months ago
parent
commit
77fcfdcba5
2 changed files with 3 additions and 1 deletions
  1. 1 0
      src/store/modules/user.ts
  2. 2 1
      src/views/flow/group/index.vue

+ 1 - 0
src/store/modules/user.ts

@@ -50,6 +50,7 @@ const useUserStore = defineStore({
 				this.token = token
 				// 用户信息
 				ls.set('userInfo', userInfo)
+				ls.set('tipFlag', true)
 				this.userInfo = userInfo
 				const { redirect/*, ...query*/ } = (this.loginQuery || {}) as any
 				const path = redirect || '/'

+ 2 - 1
src/views/flow/group/index.vue

@@ -28,7 +28,7 @@
 					<el-button :type="sortFlag ? 'info' : 'primary'" icon="Plus" :disabled="sortFlag" @click="createProcessEv('index')">创建审批</el-button>
 				</div>
 			</header>
-			<el-alert title="长按流程或分组可拖拽排序" type="warning" show-icon />
+			<el-alert title="长按流程或分组可拖拽排序" type="warning" show-icon @close="ls.set('tipFlag', false)" v-if="ls.get('tipFlag')"/>
 			<div class="mt-4">
 				<component :is="typeComponentMap[pageType]" ref="dyncComponent"></component>
 			</div>
@@ -41,6 +41,7 @@ import { CircleCheck } from '@element-plus/icons-vue'
 import SortGroup from './components/sortGroup'
 import ListGroup from './components/listGroup'
 import router from '@/router'
+import { ls } from '@/utils'
 import useFlowStore from '@/store/modules/flow'
 const flowStore = useFlowStore()