Browse Source

图片上传测试环境

master
liruiqiang 3 months ago
parent
commit
c4da5f8fc2
  1. 1
      .env.development
  2. 2
      .env.production
  3. 2
      src/views/admin/landingManagement.vue

1
.env.development

@ -3,4 +3,3 @@ VITE_APP_ENV=development
# 测试环境 API # 测试环境 API
VITE_API_BASE_URL=https://dbqb.nfdxy.net/activityApi VITE_API_BASE_URL=https://dbqb.nfdxy.net/activityApi
VITE_API_BASE_IMG_URL=http://39.101.133.168:8828

2
.env.production

@ -3,4 +3,4 @@ VITE_APP_ENV=production
# 生产环境 API # 生产环境 API
VITE_API_BASE_URL=https://your-production-domain.com VITE_API_BASE_URL=https://your-production-domain.com
VITE_API_BASE_IMG_URL=http://tjapi.hlquant.com
# VITE_API_BASE_IMG_URL=http://tjapi.hlquant.com

2
src/views/admin/landingManagement.vue

@ -356,7 +356,7 @@ export default {
// / // /
async submitForm() { async submitForm() {
const API_BASE_URL = import.meta.env.VITE_API_BASE_IMG_URL;
const API_BASE_URL = 'http://39.101.133.168:8828';
this.$refs.formRef.validate( async (valid) => { this.$refs.formRef.validate( async (valid) => {
if (valid) { if (valid) {
let landingPageFlag = true let landingPageFlag = true

Loading…
Cancel
Save