Browse Source

delete $message error

pull/72/head
zhangtao 1 year ago
parent
commit
c1e0f11f03
2 changed files with 0 additions and 5 deletions
  1. +0
    -1
      src/router/guard/permission-guard.js
  2. +0
    -4
      src/views/task-manage/components/DrawComp.vue

+ 0
- 1
src/router/guard/permission-guard.js View File

@@ -8,7 +8,6 @@ export function createPermissionGuard(router) {
const permissionStore = usePermissionStore()
router.beforeEach(async(to, from, next) => {
const oidcUser = await getUserInfo()
debugger
if (oidcUser) {
const hasRoutes = !!permissionStore.permissionRoutes.length
if (hasRoutes) {

+ 0
- 4
src/views/task-manage/components/DrawComp.vue View File

@@ -281,8 +281,6 @@ const startFly = () => {
pilotStart({ id: data.id }).then(({ code, msg }) => {
if (code === 0) {
emit('close')
} else {
$message.error(msg)
}
})
}
@@ -299,8 +297,6 @@ const endFly = () => {
pilotEnd({ id: data.id }).then(({ code, msg }) => {
if (code === 0) {
emit('close')
} else {
$message.error(msg)
}
})
}

Loading…
Cancel
Save