feat(Design): 新增填空题组件并优化问卷发布功能- 新增 CompletionQuestionAction 组件用于填空题配置
-重命名 RateAction 为 RateQuestionAction,优化打分题配置- 更新 QuestionAction 组件,支持多选、打分和填空题型 - 改进问卷发布页面,增加复制链接和下载二维码功能 - 优化代码结构,提高可维护性和可读性
This commit is contained in:
13
.env.uat
Normal file
13
.env.uat
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# .env.development
|
||||||
|
VITE_APP_BASEURL=https://yls-api-uat.dctest.digitalyili.com/api/
|
||||||
|
VITE_APP_ENV=uat
|
||||||
|
VITE_APP_CURRENTMODE=uat
|
||||||
|
VITE_APP_BASEOSS=https://diaoyan-files.automark.cc
|
||||||
|
VITE_APP_DELIVERY_BASEURL=https://javaxq.test.automark.cc/
|
||||||
|
VITE_APP_MESSAGE_CENTER=http://gtech-gateway.dcin-test.digitalyili.com/apigtech/message-send-center/
|
||||||
|
VITE_APP_SOCKETURL=wss://yls-api-uat.dctest.digitalyili.com/survey_sync
|
||||||
|
VITE_APP_JSONPURL=https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken
|
||||||
|
VITE_APP_YQRURL=https://ocp-uat-ain.digitalyili.com
|
||||||
|
# VITE_APP_BASE_APPURL=https://ycsb-gw-uat.dcin-test.digitalyili.com
|
||||||
|
# VITE_APP_APPKEY=62f495a0f7854e4e46ebbf40
|
||||||
|
# VITE_APP_APPID=m5c66hlce3
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --mode development",
|
"dev": "vite --mode development",
|
||||||
"build": "run-p type-check \"build-only {@}\" --",
|
"build": "run-p type-check \"build-only {@}\" --",
|
||||||
|
"build_uat": "run-s build-only -- --model uat",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import axios from 'axios';
|
|||||||
|
|
||||||
import * as config from '@/config.js';
|
import * as config from '@/config.js';
|
||||||
// import {proxyUrl} from config.default
|
// import {proxyUrl} from config.default
|
||||||
const NODE_ENV = import.meta.env.VITE_APP_ENV;
|
// const NODE_ENV = import.meta.env.VITE_APP_ENV;
|
||||||
const baseURL = NODE_ENV === 'production' ? config.default.proxyUrl : 'http://192.168.8.165:15011/';
|
const baseURL = config.default.proxyUrl;
|
||||||
|
|
||||||
// axios.defaults.withCredentials = true;
|
// axios.defaults.withCredentials = true;
|
||||||
|
|
||||||
@@ -42,10 +42,10 @@ service.interceptors.request.use(
|
|||||||
service.interceptors.response.use(
|
service.interceptors.response.use(
|
||||||
(response) => {
|
(response) => {
|
||||||
if (
|
if (
|
||||||
response.status === 200
|
response.status === 200 ||
|
||||||
|| response.status === 201
|
response.status === 201 ||
|
||||||
|| response.status === 202
|
response.status === 202 ||
|
||||||
|| response.status === 204
|
response.status === 204
|
||||||
) {
|
) {
|
||||||
if (response.config.method === 'put') {
|
if (response.config.method === 'put') {
|
||||||
// message.success('保存中...');
|
// message.success('保存中...');
|
||||||
|
|||||||
Reference in New Issue
Block a user