ai-question-pro 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/demo/api/index.js +8 -0
- package/components/demo/src/main.vue +5 -1
- package/components/demo/utils/request.js +2 -2
- package/dist/ai-question-pro.common.js +32992 -180
- package/dist/ai-question-pro.common.js.map +1 -1
- package/dist/ai-question-pro.umd.js +32990 -178
- package/dist/ai-question-pro.umd.js.map +1 -1
- package/dist/ai-question-pro.umd.min.js +25 -2
- package/dist/ai-question-pro.umd.min.js.map +1 -1
- package/package.json +3 -2
|
@@ -77,7 +77,7 @@ import CyTreeSelect from './CyTreeSelect.vue'
|
|
|
77
77
|
// import {
|
|
78
78
|
// Button, Drawer, Form, FormItem, Checkbox, CheckboxGroup, Input, Cascader, Dialog, Loading, this.$message
|
|
79
79
|
// } from "element-ui"
|
|
80
|
-
import { getAiQuestion, agreeQuestion } from '../api/index'
|
|
80
|
+
import { getAiQuestion, agreeQuestion, createBurial } from '../api/index'
|
|
81
81
|
import Cookies from 'js-cookie';
|
|
82
82
|
export default {
|
|
83
83
|
name: 'aiQuestion',
|
|
@@ -238,6 +238,10 @@ export default {
|
|
|
238
238
|
knowledge: []
|
|
239
239
|
}
|
|
240
240
|
this.addShow = !this.addShow
|
|
241
|
+
createBurial({
|
|
242
|
+
businessType: 3,
|
|
243
|
+
operatorType: 0
|
|
244
|
+
})
|
|
241
245
|
},
|
|
242
246
|
//生成题目
|
|
243
247
|
generate() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import axios from 'axios'
|
|
2
2
|
import Cookies from 'js-cookie'
|
|
3
3
|
import cache from '../plugins/cache'
|
|
4
|
-
|
|
4
|
+
import { Message } from 'element-ui'
|
|
5
5
|
const door = sessionStorage.getItem('AI_BASE_URL_FOR_TEST');
|
|
6
6
|
|
|
7
7
|
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|
@@ -65,7 +65,7 @@ service.interceptors.response.use(res => {
|
|
|
65
65
|
return res.data
|
|
66
66
|
}
|
|
67
67
|
if (res.data.code == 401) {
|
|
68
|
-
|
|
68
|
+
Message.warning(res.data.msg)
|
|
69
69
|
}
|
|
70
70
|
if (!res.data.success) {
|
|
71
71
|
// Message.warning(res.data.errMessage)
|