mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-18 17:46:38 +08:00
refactor(projects): rename directory serviceAlova
to service-alova
This commit is contained in:
parent
a2178d3405
commit
e019defef3
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
import { fetchCustomBackendError } from '@/serviceAlova/api';
|
import { fetchCustomBackendError } from '@/service-alova/api';
|
||||||
|
|
||||||
async function logout() {
|
async function logout() {
|
||||||
await fetchCustomBackendError('8888', $t('request.logoutMsg'));
|
await fetchCustomBackendError('8888', $t('request.logoutMsg'));
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { actionDelegationMiddleware, useAutoRequest } from '@sa/alova/client';
|
import { actionDelegationMiddleware, useAutoRequest } from '@sa/alova/client';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { alova } from '@/serviceAlova/request';
|
import { alova } from '@/service-alova/request';
|
||||||
|
|
||||||
const getLastTime = alova.Get<{ time: string }>('/mock/getLastTime', { cacheFor: null });
|
const getLastTime = alova.Get<{ time: string }>('/mock/getLastTime', { cacheFor: null });
|
||||||
const isStop = ref(false);
|
const isStop = ref(false);
|
||||||
|
@ -3,7 +3,7 @@ import { computed } from 'vue';
|
|||||||
import { actionDelegationMiddleware, useCaptcha, useForm } from '@sa/alova/client';
|
import { actionDelegationMiddleware, useCaptcha, useForm } from '@sa/alova/client';
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
|
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
|
||||||
import { sendCaptcha, verifyCaptcha } from '@/serviceAlova/api';
|
import { sendCaptcha, verifyCaptcha } from '@/service-alova/api';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'CaptchaVerification'
|
name: 'CaptchaVerification'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { actionDelegationMiddleware, useAutoRequest } from '@sa/alova/client';
|
import { actionDelegationMiddleware, useAutoRequest } from '@sa/alova/client';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { alova } from '@/serviceAlova/request';
|
import { alova } from '@/service-alova/request';
|
||||||
|
|
||||||
const getLastTime = alova.Get<{ time: string }>('/mock/getLastTime', { cacheFor: null });
|
const getLastTime = alova.Get<{ time: string }>('/mock/getLastTime', { cacheFor: null });
|
||||||
const isStop = ref(false);
|
const isStop = ref(false);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { actionDelegationMiddleware, useAutoRequest } from '@sa/alova/client';
|
import { actionDelegationMiddleware, useAutoRequest } from '@sa/alova/client';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { alova } from '@/serviceAlova/request';
|
import { alova } from '@/service-alova/request';
|
||||||
|
|
||||||
const getLastTime = alova.Get<{ time: string }>('/mock/getLastTime', { cacheFor: null });
|
const getLastTime = alova.Get<{ time: string }>('/mock/getLastTime', { cacheFor: null });
|
||||||
const isStop = ref(false);
|
const isStop = ref(false);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { NButton, NPopconfirm, NTag } from 'naive-ui';
|
import { NButton, NPopconfirm, NTag } from 'naive-ui';
|
||||||
import { usePagination } from '@sa/alova/client';
|
import { usePagination } from '@sa/alova/client';
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { batchDeleteUser, deleteUser, fetchGetUserList } from '@/serviceAlova/api';
|
import { batchDeleteUser, deleteUser, fetchGetUserList } from '@/service-alova/api';
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
import { useAppStore } from '@/store/modules/app';
|
import { useAppStore } from '@/store/modules/app';
|
||||||
import { enableStatusRecord, userGenderRecord } from '@/constants/business';
|
import { enableStatusRecord, userGenderRecord } from '@/constants/business';
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
import { computed, watch } from 'vue';
|
import { computed, watch } from 'vue';
|
||||||
import { useForm, useWatcher } from '@sa/alova/client';
|
import { useForm, useWatcher } from '@sa/alova/client';
|
||||||
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
|
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
|
||||||
import type { UserModel } from '@/serviceAlova/api';
|
import type { UserModel } from '@/service-alova/api';
|
||||||
import { addUser, fetchGetAllRoles, updateUser } from '@/serviceAlova/api';
|
import { addUser, fetchGetAllRoles, updateUser } from '@/service-alova/api';
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
import { enableStatusOptions, userGenderOptions } from '@/constants/business';
|
import { enableStatusOptions, userGenderOptions } from '@/constants/business';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user