修复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" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@vueup/vue-quill": "^1.0.0-beta.7",
"axios": "^0.24.0", "axios": "^0.24.0",
"clipboard": "^2.0.8", "clipboard": "^2.0.8",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-plus": "^1.2.0-beta.5", "element-plus": "^1.3.0-beta.3",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"mitt": "^3.0.0", "mitt": "^3.0.0",
"sortablejs": "1.14.0", "sortablejs": "1.14.0",

View File

@ -17,6 +17,7 @@
@blur="handleRichEditorBlurEvent" @blur="handleRichEditorBlurEvent"
@focus="handleRichEditorFocusEvent" @focus="handleRichEditorFocusEvent"
@change="handleRichEditorChangeEvent" @change="handleRichEditorChangeEvent"
style="height: 200px;"
/> />
</form-item-wrapper> </form-item-wrapper>
@ -29,7 +30,12 @@
import {deepClone} from "@/utils/util"; import {deepClone} from "@/utils/util";
import fieldMixin from "@/components/form-designer/form-widget/field-widget/fieldMixin"; 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 { export default {
name: "rich-editor-widget", name: "rich-editor-widget",
@ -67,7 +73,9 @@
// VueEditor: resolve => { // // VueEditor: resolve => { //
// require(['vue2-editor'], ({VueEditor}) => resolve(VueEditor)) // require(['vue2-editor'], ({VueEditor}) => resolve(VueEditor))
// } // }
quillEditor, //quillEditor,
QuillEditor,
}, },
inject: ['refList', 'formConfig', 'globalOptionData', 'globalModel'], inject: ['refList', 'formConfig', 'globalOptionData', 'globalModel'],
data() { data() {

View File

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