fix : 修复详情页面移动端适配

This commit is contained in:
2024-06-24 13:25:34 +08:00
parent f66a570f00
commit 6f320a47bb
8 changed files with 436 additions and 40 deletions

View File

@@ -12,7 +12,7 @@ import {ElNotification} from 'element-plus';
import {agreeTask, rejectTask} from "@/api/project-demand/index.js";
import {useTagsView} from '@/stores/tagsview.js'
const tagsViewStore = useTagsView()
// const tagsViewStore = useTagsView()
const route = useRoute()
const router = useRouter()
const props = defineProps({
@@ -141,8 +141,9 @@ const handleReject = async () => {
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
back()
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
location.reload()
// back()
}
const handleAgree = async () => {
@@ -158,8 +159,9 @@ const handleAgree = async () => {
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
back()
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
location.reload()
// back()
}
</script>