Skip to content

Commit

Permalink
feat: window全局引入request
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jun 22, 2024
1 parent 42d32e2 commit d339377
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit d339377

Please sign in to comment.