修复axios报错。

master
vdpAdmin 2022-01-11 10:32:19 +08:00
parent 9cfb9e95c9
commit 3fc5f9f24f
4 changed files with 13 additions and 3492 deletions

3489
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,10 +10,11 @@
"preview": "vite preview"
},
"dependencies": {
"@vueup/vue-quill": "^1.0.0-beta.7",
"axios": "^0.24.0",
"clipboard": "^2.0.8",
"core-js": "^3.6.5",
"element-plus": "^1.2.0-beta.5",
"element-plus": "^1.3.0-beta.3",
"file-saver": "^2.0.5",
"mitt": "^3.0.0",
"sortablejs": "1.14.0",

View File

@ -17,6 +17,7 @@
@blur="handleRichEditorBlurEvent"
@focus="handleRichEditorFocusEvent"
@change="handleRichEditorChangeEvent"
style="height: 200px;"
/>
</form-item-wrapper>
@ -29,7 +30,12 @@
import {deepClone} from "@/utils/util";
import fieldMixin from "@/components/form-designer/form-widget/field-widget/fieldMixin";
import { Quill, quillEditor } from 'vue3-quill'
//import { Quill, quillEditor } from 'vue3-quill'
//const modules = import.meta.glob('../../../../../node_modules/vue3-quill/src/index.js')
//console.log('test=====', modules)
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
export default {
name: "rich-editor-widget",
@ -67,7 +73,9 @@
// VueEditor: resolve => { //
// require(['vue2-editor'], ({VueEditor}) => resolve(VueEditor))
// }
quillEditor,
//quillEditor,
QuillEditor,
},
inject: ['refList', 'formConfig', 'globalOptionData', 'globalModel'],
data() {

View File

@ -71,6 +71,7 @@
import {addWindowResizeHandler, deepClone, getQueryParam} from "@/utils/util"
import {MOCK_CASE_URL, VARIANT_FORM_VERSION} from "@/utils/config"
import i18n, { changeLocale } from "@/utils/i18n"
import axios from "axios"
export default {
name: "VFormDesigner",