feat:增加 navigateBackPlus 方法,支持 fallbackUrl 在 navigateBack 失败时,跳转到 fallbackUrl 地址
feat:将 navigateBackPlus 接入到 user 管理中
This commit is contained in:
@@ -77,6 +77,7 @@ import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
import { formatDateTime } from '@/utils/date'
|
||||
import PasswordForm from './components/password-form.vue'
|
||||
import RoleAssignForm from './components/role-assign-form.vue'
|
||||
import { navigateBackPlus } from '@/utils';
|
||||
|
||||
const props = defineProps<{
|
||||
id: number
|
||||
@@ -116,7 +117,7 @@ const hasMoreActions = computed(() => moreActions.value.length > 0)
|
||||
|
||||
/** 返回上一页 */
|
||||
function handleBack() {
|
||||
uni.navigateBack()
|
||||
navigateBackPlus('/pages-system/user/index')
|
||||
}
|
||||
|
||||
/** 加载用户详情 */
|
||||
|
||||
@@ -106,6 +106,7 @@ import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
import { isEmail, isMobile } from '@/utils/validator'
|
||||
import DeptPicker from './components/dept-picker.vue'
|
||||
import PostPicker from './components/post-picker.vue'
|
||||
import { navigateBackPlus } from '@/utils';
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number
|
||||
@@ -147,7 +148,7 @@ const formRef = ref()
|
||||
|
||||
/** 返回上一页 */
|
||||
function handleBack() {
|
||||
uni.navigateBack()
|
||||
navigateBackPlus('/pages-system/user/index')
|
||||
}
|
||||
|
||||
/** 加载用户详情 */
|
||||
|
||||
@@ -92,6 +92,7 @@ import { getUserPage } from '@/api/system/user'
|
||||
import { useAccess } from '@/hooks/useAccess'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import SearchForm from './components/search-form.vue'
|
||||
import { navigateBackPlus } from '@/utils';
|
||||
|
||||
definePage({
|
||||
style: {
|
||||
@@ -114,7 +115,7 @@ const queryParams = reactive({
|
||||
|
||||
/** 返回上一页 */
|
||||
function handleBack() {
|
||||
uni.navigateBack()
|
||||
navigateBackPlus()
|
||||
}
|
||||
|
||||
/** 查询用户列表 */
|
||||
|
||||
Reference in New Issue
Block a user