You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
view-ui-plus.js?v=1bd0da6a:10103 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'add') at Object.notice (view-ui-plus.js?v=1bd0da6a:10103:13) at a0 (view-ui-plus.js?v=1bd0da6a:10123:18) at Object.message (view-ui-plus.js?v=1bd0da6a:10146:62) at Object.error (view-ui-plus.js?v=1bd0da6a:10142:21) at onSearch (index.vue:680:13) at index.vue:401:5 at chunk-XGACGZPK.js?v=6e19c5a1:7673:92 at callWithErrorHandling (chunk-XGACGZPK.js?v=6e19c5a1:1722:18) at callWithAsyncErrorHandling (chunk-XGACGZPK.js?v=6e19c5a1:1730:17) at hook.__weh.hook.__weh (chunk-XGACGZPK.js?v=6e19c5a1:3467:19)
请问大佬这需要怎么解决
The text was updated successfully, but these errors were encountered:
main.js
`
import { createApp } from 'vue'
import App from '@/App.vue'
import ViewUIPlus from 'view-ui-plus'
const app = createApp(App);
app.provide('Message', ViewUIPlus.Message);
app.mount('#app');
`
index.js
`
import { ref, inject, reactive, watch, computed, onMounted } from "vue";
const Message = inject("Message");
nMounted(async () => {
Message.loading({
content: "加载中...",
duration: 0,
});
})
`
出现错误
view-ui-plus.js?v=1bd0da6a:10103 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'add') at Object.notice (view-ui-plus.js?v=1bd0da6a:10103:13) at a0 (view-ui-plus.js?v=1bd0da6a:10123:18) at Object.message (view-ui-plus.js?v=1bd0da6a:10146:62) at Object.error (view-ui-plus.js?v=1bd0da6a:10142:21) at onSearch (index.vue:680:13) at index.vue:401:5 at chunk-XGACGZPK.js?v=6e19c5a1:7673:92 at callWithErrorHandling (chunk-XGACGZPK.js?v=6e19c5a1:1722:18) at callWithAsyncErrorHandling (chunk-XGACGZPK.js?v=6e19c5a1:1730:17) at hook.__weh.hook.__weh (chunk-XGACGZPK.js?v=6e19c5a1:3467:19)
请问大佬这需要怎么解决
The text was updated successfully, but these errors were encountered: