Browse Source

图片上传测试环境

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

3
.env.development

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

2
.env.production

@ -3,4 +3,4 @@ VITE_APP_ENV=production
# 生产环境 API
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() {
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) => {
if (valid) {
let landingPageFlag = true

Loading…
Cancel
Save