fix
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import request from "@/utils/request";
|
||||
import type { ShortLink } from "@/models/shortLink";
|
||||
import type { LogListParams } from "@/models/LogListParams";
|
||||
import type { ShortLink } from "@/types/ShortLink";
|
||||
import type { LogListParams } from "@/types/LogListParams";
|
||||
import type { AxiosResponse } from "axios";
|
||||
|
||||
export const listShortLink = (params: { pageNum: number; pageSize: number }) =>
|
||||
request({
|
||||
@ -21,7 +22,9 @@ export const updateShortLink = (data: ShortLink) =>
|
||||
url: "/shortLink",
|
||||
data,
|
||||
});
|
||||
export const getDetailById = (id: number) =>
|
||||
export const getDetailById = (
|
||||
id: number
|
||||
): Promise<AxiosResponse<{ data: ShortLink }>> =>
|
||||
request({ method: "get", url: `/shortLink/getInfo/${id}` });
|
||||
|
||||
export const deleteShortLink = (ids: string) =>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import axios from "axios";
|
||||
import axios, { type AxiosRequestConfig, type AxiosResponse } from "axios";
|
||||
import { ElMessage, ElNotification } from "element-plus";
|
||||
import { errorCode } from "@/utils/errorCode";
|
||||
// 创建axios实例
|
||||
@ -40,11 +40,6 @@ service.interceptors.response.use(
|
||||
message = "系统接口" + message.substr(message.length - 3) + "异常";
|
||||
}
|
||||
ElMessage.error({ message, duration: 5 * 1000 });
|
||||
// ElMessage({
|
||||
// message: message,
|
||||
// type: "error",
|
||||
// duration: 5 * 1000,
|
||||
// });
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
@ -58,7 +58,7 @@
|
||||
<script setup name="AccessRecords" lang="ts">
|
||||
import { reactive, ref, toRefs } from "vue";
|
||||
import { listLogList } from "@/api/shortlink";
|
||||
import type { LogListParams } from "@/models/LogListParams";
|
||||
import type { LogListParams } from "@/types/LogListParams";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
|
@ -190,7 +190,7 @@ import {
|
||||
} from "@/api/shortlink";
|
||||
import { reactive, ref, toRefs } from "vue";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import type { ShortLink } from "@/models/shortLink";
|
||||
import type { ShortLink } from "@/types/ShortLink";
|
||||
|
||||
import QrcodeVue from "qrcode.vue";
|
||||
import { useRouter } from "vue-router";
|
||||
|
Reference in New Issue
Block a user