全局:清理多余的 request2.js

This commit is contained in:
YunaiV
2024-01-20 10:07:11 +08:00
parent ce389efdae
commit 492d84073d
35 changed files with 123 additions and 964 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import $helper from '@/sheep/helper';
import dayjs from 'dayjs';
import { ref } from 'vue';
import test from '@/sheep/helper/test.js';
import $api from '@/sheep/api';
import AuthUtil from '@/sheep/api/member/auth';
// 打开授权弹框
export function showAuthModal(type = 'smsLogin') {
@@ -94,7 +94,7 @@ export function getSmsCode(event, mobile) {
scene = 1;
break;
}
$api.AuthUtil.sendSmsCode(mobile, scene).then((res) => {
AuthUtil.sendSmsCode(mobile, scene).then((res) => {
if (res.code === 0) {
modalStore.$patch((state) => {
state.lastTimer[event] = dayjs().unix();