Pre Merge pull request !77 from dvadmin/main

pull/77/MERGE
dvadmin 2022-11-03 16:14:11 +00:00 committed by Gitee
commit 26d70aea93
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 6 deletions

View File

@ -10,7 +10,6 @@ import logging
import traceback import traceback
from django.db.models import ProtectedError from django.db.models import ProtectedError
from rest_framework import exceptions
from rest_framework.exceptions import APIException as DRFAPIException, AuthenticationFailed from rest_framework.exceptions import APIException as DRFAPIException, AuthenticationFailed
from rest_framework.views import set_rollback from rest_framework.views import set_rollback
@ -37,9 +36,6 @@ def CustomExceptionHandler(ex, context):
elif isinstance(ex, DRFAPIException): elif isinstance(ex, DRFAPIException):
set_rollback() set_rollback()
msg = ex.detail msg = ex.detail
elif isinstance(ex, exceptions.APIException):
set_rollback()
msg = ex.detail
elif isinstance(ex, ProtectedError): elif isinstance(ex, ProtectedError):
set_rollback() set_rollback()
msg = "删除失败:该条数据与其他数据有相关绑定" msg = "删除失败:该条数据与其他数据有相关绑定"

View File

@ -160,8 +160,8 @@ export default {
routerViewKey () { routerViewKey () {
// key __transition-n-/foo // key __transition-n-/foo
// key __transition-n-__stamp-time-/foo // key __transition-n-__stamp-time-/foo
const stamp = this.$route.meta[`__stamp-${this.$route.fullpath}`] || '' const stamp = this.$route.meta[`__stamp-${this.$route.fullPath}`] || ''
return `${stamp ? `__stamp-${stamp}-` : ''}${this.$route.fullpath}` return `${stamp ? `__stamp-${stamp}-` : ''}${this.$route.fullPath}`
}, },
/** /**
* @description 最外层容器的背景图片样式 * @description 最外层容器的背景图片样式