diff --git a/.env.development b/.env.development
new file mode 100644
index 0000000..2ed89ee
--- /dev/null
+++ b/.env.development
@@ -0,0 +1,8 @@
+# 页面标题
+#VITE_APP_TITLE = 楚桓会议系统
+
+# 开发环境配置
+VITE_APP_ENV = 'development'
+
+# 若依管理系统/开发环境
+VITE_APP_BASE_API = '/dev-api'
diff --git a/.env.production b/.env.production
new file mode 100644
index 0000000..f0ed844
--- /dev/null
+++ b/.env.production
@@ -0,0 +1,11 @@
+# 页面标题
+#VITE_APP_TITLE = 楚桓会议系统
+
+# 生产环境配置
+VITE_APP_ENV = 'production'
+
+# 若依管理系统/生产环境
+# VITE_APP_BASE_API = '/prod-api'
+# VITE_APP_BASE_API = 'http://120.26.107.74:1618'
+VITE_APP_BASE_API = '/api'
+
diff --git a/index.html b/index.html
index a888544..5eeb390 100644
--- a/index.html
+++ b/index.html
@@ -1,13 +1,13 @@
-
-
-
-
- Vite App
-
-
-
-
-
+
+
+
+
+ 生成短链接
+
+
+
+
+
diff --git a/public/favicon.ico b/public/favicon.ico
index df36fcf..31f3c04 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/src/api/shortlink.ts b/src/api/shortlink.ts
index 8b2e1eb..80ab9b4 100644
--- a/src/api/shortlink.ts
+++ b/src/api/shortlink.ts
@@ -6,20 +6,20 @@ export const listShortLink = (params: { pageNum: number; pageSize: number }) =>
request({
method: "get",
url: "/shortLink/list",
- params
+ params,
});
export const addShortLink = (data: ShortLink) =>
request({
method: "post",
url: "/shortLink",
- data
+ data,
});
export const updateShortLink = (data: ShortLink) =>
request({
method: "put",
url: "/shortLink",
- data
+ data,
});
export const getDetailById = (id: number) =>
request({ method: "get", url: `/shortLink/getInfo/${id}` });
@@ -27,12 +27,12 @@ export const getDetailById = (id: number) =>
export const deleteShortLink = (ids: string) =>
request({
url: `/shortLink/${ids}`,
- method: "delete"
+ method: "delete",
});
export const listLogList = (params: LogListParams) =>
request({
url: `/shortLink/getShortLinkLogList`,
method: "get",
- params
+ params,
});
diff --git a/src/utils/request.ts b/src/utils/request.ts
index f3a7c9d..091a4f6 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -5,9 +5,9 @@ import { errorCode } from "@/utils/errorCode";
const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分
- // baseURL: import.meta.env.VITE_APP_BASE_API,
+ baseURL: import.meta.env.VITE_APP_BASE_API,
// 超时
- baseURL: "/dev-api",
+ // baseURL: "/dev-api",
timeout: 100000,
});
diff --git a/src/views/GenShortLink.vue b/src/views/GenShortLink.vue
index 836119d..ce3742e 100644
--- a/src/views/GenShortLink.vue
+++ b/src/views/GenShortLink.vue
@@ -3,7 +3,7 @@
新增
+ >新增
@@ -13,7 +13,7 @@
type="danger"
size="small"
:disabled="multiple"
- >批量删除
+ >批量删除
@@ -37,7 +37,7 @@
{{ row.urlPrefix }}/dlj/{{ row.urlSuffix }}
@@ -60,7 +60,7 @@
:style="{
cursor: 'pointer',
}"
- @click="copyToClipboard(row.jumpUrl)"
+ @click="copyToClipboard(row)"
>
@@ -96,21 +96,21 @@
link
size="small"
type="warning"
- >编辑
+ >编辑
删除
+ >删除
访问记录
+ >访问记录
@@ -174,14 +174,20 @@
width: '100%',
marginTop: '10px',
}"
- >下载二维码
+ >下载二维码