Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a0996bd0
authored
Apr 24, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】移除 env 多余的 VITE_API_BASEPATH 配置项
parent
f405ac32
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
4 additions
and
20 deletions
+4
-20
.env.dev
+0
-3
.env.local
+0
-3
.env.prod
+0
-3
.env.stage
+0
-3
.env.test
+0
-3
src/views/mp/components/wx-reply/components/TabImage.vue
+1
-1
src/views/mp/components/wx-reply/components/TabMusic.vue
+1
-1
src/views/mp/components/wx-reply/components/TabVideo.vue
+1
-1
src/views/mp/components/wx-reply/components/TabVoice.vue
+1
-1
types/env.d.ts
+0
-1
No files found.
.env.dev
View file @
a0996bd0
...
...
@@ -12,9 +12,6 @@ VITE_UPLOAD_TYPE=server
# 上传路径
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=/dev-api
# 接口地址
VITE_API_URL=/admin-api
...
...
.env.local
View file @
a0996bd0
...
...
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
# 上传路径
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=/dev-api
# 接口地址
VITE_API_URL=/admin-api
...
...
.env.prod
View file @
a0996bd0
...
...
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
# 上传路径
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
...
...
.env.stage
View file @
a0996bd0
...
...
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
# 上传路径
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
...
...
.env.test
View file @
a0996bd0
...
...
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
# 上传路径
VITE_UPLOAD_URL
=
'http://localhost:48080/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH
=
# 接口地址
VITE_API_URL
=/
admin
-
api
...
...
src/views/mp/components/wx-reply/components/TabImage.vue
View file @
a0996bd0
...
...
@@ -63,7 +63,7 @@ import { getAccessToken } from '@/utils/auth'
import
{
Reply
}
from
'./types'
const
message
=
useMessage
()
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
BASE_URL
+
'/admin-api/mp/material/upload-temporary'
const
HEADERS
=
{
Authorization
:
'Bearer '
+
getAccessToken
()
}
// 设置上传的请求头部
const
props
=
defineProps
<
{
...
...
src/views/mp/components/wx-reply/components/TabMusic.vue
View file @
a0996bd0
...
...
@@ -67,7 +67,7 @@ import { Reply } from './types'
const
message
=
useMessage
()
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
BASE_URL
+
'/admin-api/mp/material/upload-temporary'
const
HEADERS
=
{
Authorization
:
'Bearer '
+
getAccessToken
()
}
// 设置上传的请求头部
const
props
=
defineProps
<
{
...
...
src/views/mp/components/wx-reply/components/TabVideo.vue
View file @
a0996bd0
...
...
@@ -58,7 +58,7 @@ import { Reply } from './types'
const
message
=
useMessage
()
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
BASE_URL
+
'/admin-api/mp/material/upload-temporary'
const
HEADERS
=
{
Authorization
:
'Bearer '
+
getAccessToken
()
}
const
props
=
defineProps
<
{
...
...
src/views/mp/components/wx-reply/components/TabVoice.vue
View file @
a0996bd0
...
...
@@ -61,7 +61,7 @@ import { getAccessToken } from '@/utils/auth'
import
{
Reply
}
from
'./types'
const
message
=
useMessage
()
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_
BASE_URL
+
'/admin-api/mp/material/upload-temporary'
const
HEADERS
=
{
Authorization
:
'Bearer '
+
getAccessToken
()
}
// 设置上传的请求头部
const
props
=
defineProps
<
{
...
...
types/env.d.ts
View file @
a0996bd0
...
...
@@ -17,7 +17,6 @@ interface ImportMetaEnv {
readonly
VITE_APP_DOCALERT_ENABLE
:
string
readonly
VITE_BASE_URL
:
string
readonly
VITE_UPLOAD_URL
:
string
readonly
VITE_API_BASEPATH
:
string
readonly
VITE_API_URL
:
string
readonly
VITE_BASE_PATH
:
string
readonly
VITE_DROP_DEBUGGER
:
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment