From d339377a04eb02cd875a77884032e8356590f292 Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Sat, 22 Jun 2024 18:32:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20window=E5=85=A8=E5=B1=80=E5=BC=95?= =?UTF-8?q?=E5=85=A5request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.js b/src/main.js index 46208419..c03f0a11 100644 --- a/src/main.js +++ b/src/main.js @@ -8,6 +8,7 @@ import router from './router' import store from './store' import i18n from '@/i18n' import directives from './directives' +import { request } from '@/utils/request' import dayjs from 'dayjs' import zhCn from 'dayjs/locale/zh-cn' import relativeTime from 'dayjs/plugin/relativeTime' @@ -48,6 +49,7 @@ app.config.globalProperties.$tool = tool app.config.globalProperties.$common = common app.config.globalProperties.$title = import.meta.env.VITE_APP_TITLE app.config.globalProperties.$url = import.meta.env.VITE_APP_BASE +window.Request = request app.mount('#app')