vue更新3.5,以及mime打更新
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<ul class="right-side">
|
||||
<li>
|
||||
<a-tooltip content="搜索-暂无">
|
||||
<a-button class="nav-btn" type="outline" :shape="'circle'" @click="handleTestBtn">
|
||||
<a-button class="nav-btn" type="outline" :shape="'circle'">
|
||||
<template #icon>
|
||||
<icon-search />
|
||||
</template>
|
||||
@@ -105,14 +105,6 @@ import { useRouter, useRoute } from "vue-router"
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const appStore = useAppStore()
|
||||
// ~~~测试开始~~~
|
||||
import { useUserStore } from "@/store"
|
||||
const userStore = useUserStore()
|
||||
const handleTestBtn = () => {
|
||||
console.log(userStore.$state)
|
||||
}
|
||||
|
||||
// ~~~测试结束~~~
|
||||
|
||||
// 切换暗黑主题
|
||||
const handleChangeTheme = () => {
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
</template>
|
||||
<transition name="ma-slide-down" mode="out-in" appear>
|
||||
<!-- 这里主要在路由定义是否缓存页面 -->
|
||||
<component :is="Component" v-if="route.meta.ignoreCache" :key="route.fullPath" />
|
||||
<component :is="Component" v-if="route.meta.ignoreCache" ref="viewChildRef" :key="route.fullPath" />
|
||||
<keep-alive v-else :include="cacheList">
|
||||
<component :is="Component" ref="viewChild" :key="route.fullPath"></component>
|
||||
<component :is="Component" ref="viewChildRef" :key="route.fullPath"></component>
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</router-view>
|
||||
@@ -21,10 +21,10 @@ import Empty from "@/components/Empty/index.vue"
|
||||
const tabBarStore = useTabBarStore()
|
||||
const cacheList = computed(() => tabBarStore.getCacheList)
|
||||
// 调用router-view组件的刷新方法
|
||||
const viewChild = ref()
|
||||
const viewChildRef = ref()
|
||||
const refresh = () => {
|
||||
try {
|
||||
viewChild.value.refreshCrudTable()
|
||||
viewChildRef.value.refreshCrudTable()
|
||||
} catch (err) {
|
||||
console.log("无法找到router-view动态组件的刷新函数")
|
||||
} finally {
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
:title="title"
|
||||
:column="roundColumn"
|
||||
:options="roundOption"
|
||||
width="800px"
|
||||
:width="800"
|
||||
:submit="handleRoundSubmit"
|
||||
>
|
||||
</ma-form-modal>
|
||||
@@ -141,14 +141,16 @@
|
||||
ref="soDutFormRef"
|
||||
:title="soDutModalTitle"
|
||||
:column="soDutColumn"
|
||||
width="800px"
|
||||
:width="800"
|
||||
:submit="handleSoDutSubmit"
|
||||
:custom-cancel="handleSoDutCancel"
|
||||
@cancel="handleSoDutCancel"
|
||||
cancelText="返回项目页面"
|
||||
:cancel-button-props="{ status: 'warning' }"
|
||||
:closable="false"
|
||||
:mask-closable="false"
|
||||
>
|
||||
<!-- 添加input前缀 -->
|
||||
<template #inputPrepend-version> V </template>
|
||||
</ma-form-modal>
|
||||
<Progress
|
||||
:visible="visible"
|
||||
@@ -185,7 +187,7 @@
|
||||
</a-dropdown>
|
||||
<!-- 复制modal组件 -->
|
||||
<!-- 关联的modal组件 -->
|
||||
<a-modal v-model:visible="modalVisible" width="700px" draggable :on-before-ok="handleCopyDemand">
|
||||
<a-modal v-model:visible="modalVisible" :width="700" draggable :on-before-ok="handleCopyDemand">
|
||||
<template #title>复制到设计需求</template>
|
||||
<div class="pb-3">选择复制到的节点:</div>
|
||||
<a-cascader
|
||||
|
||||
@@ -113,7 +113,7 @@ export default function useMustSoDut(projectId: Ref<string>) {
|
||||
return false
|
||||
}
|
||||
/**
|
||||
* 用户点击源代码被测件取消按钮
|
||||
* 用户点击源代码被测件取消按钮 -> 返回项目管理页面
|
||||
*/
|
||||
const handleSoDutCancel = () => {
|
||||
Notification.error("必须按要求添加源代码信息,返回项目列表页面!")
|
||||
|
||||
Reference in New Issue
Block a user