fix : 修复路由跳转
This commit is contained in:
@@ -49,6 +49,7 @@ const getInfo = async (state) => {
|
||||
message: msg,
|
||||
type: code === 1000 ? 'success' : 'error'
|
||||
})
|
||||
if(data===undefined)return;
|
||||
if(code===1000){
|
||||
summaryData.value = data;
|
||||
loading.value = false
|
||||
|
||||
@@ -175,7 +175,7 @@ const search = (val) => {
|
||||
|
||||
const handleAdd = (row) => {
|
||||
router.push({
|
||||
name: 'Summary/add',
|
||||
name:'Summary/add',
|
||||
query: {
|
||||
id:row.requirementId
|
||||
}
|
||||
@@ -183,7 +183,7 @@ const handleAdd = (row) => {
|
||||
}
|
||||
const handleEdit = (row) => {
|
||||
router.push({
|
||||
name: 'Summary/edit',
|
||||
name:'Summary/edit',
|
||||
query: {
|
||||
id:row.requirementId,
|
||||
projectId:row.projectId
|
||||
@@ -192,7 +192,7 @@ const handleEdit = (row) => {
|
||||
}
|
||||
const handleDetail = (row) => {
|
||||
router.push({
|
||||
name: 'Summary/detail',
|
||||
name:'Summary/detail',
|
||||
query: {
|
||||
id:row.requirementId,
|
||||
projectId: row.projectId,
|
||||
|
||||
Reference in New Issue
Block a user