diff --git a/demo/utils/useAdmateAdapter.js b/demo/utils/useAdmateAdapter.js index 6d4fdfa..2af1cb3 100644 --- a/demo/utils/useAdmateAdapter.js +++ b/demo/utils/useAdmateAdapter.js @@ -1,10 +1,14 @@ -import { computed, getCurrentInstance, onMounted, reactive, ref, toRefs, watch } from 'vue' +import { computed, getCurrentInstance, onMounted, reactive, ref, toRefs, watch } from 'vue-demi' import { FaMessageBox } from 'faim' import { cloneDeep, merge, mergeWith } from 'lodash-es' import qs from 'qs' +// import VueCompositionAPI from '@vue/composition-api' import useAdmate from '../../src' import http from '@/utils/http' +// Vue@2.6 or earlier only +// Vue.use(VueCompositionAPI) + export default ( admateConfig, { diff --git a/demo/vue2.7/index.vue b/demo/vue2.7/index.vue index a9981d1..a145abc 100644 --- a/demo/vue2.7/index.vue +++ b/demo/vue2.7/index.vue @@ -12,7 +12,6 @@ export default {