chore: 关闭设计器在开发模式中的 vue warn

This commit is contained in:
wangxuefeng 2025-03-24 09:53:08 +08:00
parent a70783dd55
commit cfc925b3e6
3 changed files with 4 additions and 2 deletions

View File

@ -15,8 +15,9 @@ pinia.use(
storage: localStorage
})
);
const app = createApp(App);
// 关闭警告
app.config.warnHandler = () => null;
app.use(router);
app.use(pinia);
app.mount('#app');

View File

@ -32,6 +32,7 @@ onMounted(async () => {
// req.headers.set('Authorization', `Bearer ${model.accessToken}`);
// return req;
// });
sessionStorage.setItem('projectId', model.projectId);
const _engine = new Engine({
container,
service,

View File

@ -18,7 +18,7 @@ const { provider, onReady } = createProvider({
service,
project: {
// @ts-ignore
id: 4
id: sessionStorage.getItem('projectId')
},
adapter: {
request,