import { createSSRApp } from "vue";
import Vue from "vue";
import App from "./App.vue";
import store from "./store";
import newRequestLoading from '@/components/ccloading/ccloading.vue';
export function createApp() {
const app = createSSRApp(App);
app.use(store);
app.component('new-loading', newRequestLoading);
return {
app,
};
}
然后就可以再任意的页面使用
<new-loading/>