mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-24 20:57:16 +08:00
refactor: 优化 useTenantStore 使用
This commit is contained in:
@@ -45,11 +45,8 @@
|
||||
import { type FormInstance, Message } from '@arco-design/web-vue'
|
||||
// import type { BehaviorCaptchaReq } from '@/apis'
|
||||
import { type BehaviorCaptchaReq, getSmsCaptcha } from '@/apis'
|
||||
import { useTabsStore, useUserStore } from '@/stores'
|
||||
import { useTabsStore, useTenantStore, useUserStore } from '@/stores'
|
||||
import * as Regexp from '@/utils/regexp'
|
||||
import { useTenantStore } from '@/stores/modules/tenant'
|
||||
|
||||
const tenantStore = useTenantStore()
|
||||
|
||||
const formRef = ref<FormInstance>()
|
||||
const form = reactive({
|
||||
@@ -66,6 +63,7 @@ const rules: FormInstance['rules'] = {
|
||||
captcha: [{ required: true, message: '请输入验证码' }],
|
||||
}
|
||||
|
||||
const tenantStore = useTenantStore()
|
||||
const userStore = useUserStore()
|
||||
const tabsStore = useTabsStore()
|
||||
const router = useRouter()
|
||||
|
Reference in New Issue
Block a user