Refactor API requests and update component imports
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
<el-icon class="absolute right-0 top-0 cursor-pointer" @click="onClose()"><Close /></el-icon>
|
||||
<!-- 左侧插图 -->
|
||||
<div class="register-left">
|
||||
<img src="@/assets/images/login-illustration.png" alt="register" class="register-img" />
|
||||
<img src="~/assets/images/login-illustration.png" alt="register" class="register-img" />
|
||||
</div>
|
||||
|
||||
<!-- 右侧注册表单 -->
|
||||
@ -53,12 +53,12 @@
|
||||
import { ref, reactive } from 'vue'
|
||||
import type { FormInstance } from 'element-plus'
|
||||
import { Close } from '@element-plus/icons-vue'
|
||||
import { sendSms } from '@/api/common/index'
|
||||
import { loginByMobile } from '@/api/login/index'
|
||||
import { sendSms } from '~/api/common/index'
|
||||
import { loginByMobile } from '~/api/login/index'
|
||||
const { $openLogin } = useNuxtApp()
|
||||
|
||||
import { refreshToken as REFRESHTOKEN } from '@/utils/axios'
|
||||
import useUserStore from '@/store/user'
|
||||
import { refreshToken as REFRESHTOKEN } from '~/utils/axios'
|
||||
import useUserStore from '~/store/user'
|
||||
const userStore = useUserStore()
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
Reference in New Issue
Block a user