feat(Design): 新增填空题组件并优化问卷发布功能- 新增 CompletionQuestionAction 组件用于填空题配置
-重命名 RateAction 为 RateQuestionAction,优化打分题配置- 更新 QuestionAction 组件,支持多选、打分和填空题型 - 改进问卷发布页面,增加复制链接和下载二维码功能 - 优化代码结构,提高可维护性和可读性
This commit is contained in:
@@ -5,8 +5,8 @@ import axios from 'axios';
|
||||
|
||||
import * as config from '@/config.js';
|
||||
// import {proxyUrl} from config.default
|
||||
const NODE_ENV = import.meta.env.VITE_APP_ENV;
|
||||
const baseURL = NODE_ENV === 'production' ? config.default.proxyUrl : 'http://192.168.8.165:15011/';
|
||||
// const NODE_ENV = import.meta.env.VITE_APP_ENV;
|
||||
const baseURL = config.default.proxyUrl;
|
||||
|
||||
// axios.defaults.withCredentials = true;
|
||||
|
||||
@@ -42,10 +42,10 @@ service.interceptors.request.use(
|
||||
service.interceptors.response.use(
|
||||
(response) => {
|
||||
if (
|
||||
response.status === 200
|
||||
|| response.status === 201
|
||||
|| response.status === 202
|
||||
|| response.status === 204
|
||||
response.status === 200 ||
|
||||
response.status === 201 ||
|
||||
response.status === 202 ||
|
||||
response.status === 204
|
||||
) {
|
||||
if (response.config.method === 'put') {
|
||||
// message.success('保存中...');
|
||||
|
||||
Reference in New Issue
Block a user