Skip to main content
Glama
main-example.ts705 B
import { createApp } from "vue"; import ElementPlus from "element-plus"; import "element-plus/dist/index.css"; import App from "./App.vue"; import router from "./router"; import { createPinia } from "pinia"; // 导入全局功能 import { globalErrorHandler } from "./utils/errorHandler"; import { ConfirmationPlugin } from "./composables/useConfirmation"; const app = createApp(App); // 注册Pinia app.use(createPinia()); // 注册路由 app.use(router); // 注册Element Plus app.use(ElementPlus); // 注册全局错误处理 app.use(globalErrorHandler); // 注册全局确认对话框 app.use(ConfirmationPlugin); app.mount("#app"); // 示例:在全局中使用这些功能 export { app };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zaizaizhao/mcp-swagger-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server