Skip to content

Commit

Permalink
修复引入
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 7, 2024
1 parent 3ee730e commit caad604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from './App'
import store from './store'

// 引入全局uview-plus
import uviewPlus from 'uview-plus/index.js'
import uviewPlus from '@/uni_modules/uview-plus/index.js'

// i18n部分的配置
// 引入语言包,注意路径
Expand All @@ -20,7 +20,7 @@ let i18nConfig = {
}

// 引入uView对小程序分享的mixin封装
import mpShare from 'uview-plus/libs/mixin/mpShare.js'
import mpShare from '@/uni_modules/uview-plus/libs/mixin/mpShare.js'
import mixin from './common/mixin'

// #ifdef VUE3
Expand Down
6 changes: 5 additions & 1 deletion src/uni_modules/uview-plus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ import color from './libs/config/color.js'
// 平台
import platform from './libs/function/platform'

// 导出
export * from './libs/function/index.js'
export const http = new Request()

const $u = {
route,
date: index.timeFormat, // 另名date
Expand All @@ -42,7 +46,7 @@ const $u = {
colorToRgba: colorGradient.colorToRgba,
test,
type: ['primary', 'success', 'error', 'warning', 'info'],
http: new Request(),
http,
config, // uview-plus配置信息相关,比如版本号
zIndex,
debounce,
Expand Down

0 comments on commit caad604

Please sign in to comment.