chore: 修复一些小问题

This commit is contained in:
xiaojunnuo
2025-04-13 00:45:01 +08:00
parent a5af3ba0cb
commit 18a32ffb0b
14 changed files with 62 additions and 48 deletions
@@ -30,7 +30,7 @@
<script lang="ts" setup>
import { computed, ref, Ref } from "vue";
import { useSettingStore } from "/@/store/settings";
import { SiteInfo } from "/@/api/modules/api.basic";
import { SiteInfo } from "/@/store/settings/api.basic";
const version = ref(import.meta.env.VITE_APP_VERSION);
const settingStore = useSettingStore();
@@ -14,9 +14,8 @@
</template>
<script setup lang="ts">
import { computed, ref, useAttrs } from "vue";
import { nanoid } from "nanoid";
import { notification } from "ant-design-vue";
import * as api from "/@/api/modules/api.basic";
import * as api from "/@/store/settings/api.basic";
const props = defineProps<{
value?: string;
@@ -58,7 +57,7 @@ async function sendSmsCode() {
phoneCode: props.phoneCode,
mobile: props.mobile,
imgCode: props.imgCode,
randomStr: props.randomStr
randomStr: props.randomStr,
});
} finally {
loading.value = false;
@@ -14,9 +14,8 @@
</template>
<script setup lang="ts">
import { computed, ref, useAttrs } from "vue";
import { nanoid } from "nanoid";
import { notification } from "ant-design-vue";
import * as api from "/@/api/modules/api.basic";
import * as api from "/@/store/settings/api.basic";
const props = defineProps<{
value?: string;
@@ -53,7 +52,7 @@ async function sendSmsCode() {
await api.sendEmailCode({
email: props.email,
imgCode: props.imgCode,
randomStr: props.randomStr
randomStr: props.randomStr,
});
} finally {
loading.value = false;