Skip to content

Commit ed993d6

Browse files
committed
pref: add log
- update antd-vue deps version
1 parent cdf93aa commit ed993d6

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@antv/data-set": "^0.10.2",
16-
"ant-design-vue": "1.5.0-beta.1",
16+
"ant-design-vue": "1.5.0-rc.6",
1717
"axios": "^0.19.0",
1818
"core-js": "^3.1.2",
1919
"enquire.js": "^2.1.6",

src/core/lazy_use.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ Vue.use(VueStorage, config.storageOptions)
2323
Vue.use(VueClipboard)
2424
Vue.use(PermissionHelper)
2525
Vue.use(VueCropper)
26+
27+
process.env.NODE_ENV !== 'production' && console.warn('[antd-pro] NOTICE: Antd use lazy-load.')

src/core/use.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ Vue.use(VueStorage, config.storageOptions)
2626
Vue.use(VueClipboard)
2727
Vue.use(PermissionHelper)
2828
Vue.use(VueCropper)
29+
30+
process.env.NODE_ENV !== 'production' && console.warn('[antd-pro] WARNING: Antd now use fulled imported.')

src/mock/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { isIE } from '@/utils/util'
33
// 判断环境不是 prod 或者 preview 是 true 时,加载 mock 服务
44
if (process.env.NODE_ENV !== 'production' || process.env.VUE_APP_PREVIEW === 'true') {
55
if (isIE()) {
6-
console.error('ERROR: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.')
6+
console.error('[antd-pro] ERROR: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.')
77
}
88
// 使用同步加载依赖
99
// 防止 vuex 中的 GetInfo 早于 mock 运行,导致无法 mock 请求返回结果
10-
console.log('mock mounting')
10+
console.log('[antd-pro] mock mounting')
1111
const Mock = require('mockjs2')
1212
require('./services/auth')
1313
require('./services/user')
@@ -19,5 +19,5 @@ if (process.env.NODE_ENV !== 'production' || process.env.VUE_APP_PREVIEW === 'tr
1919
Mock.setup({
2020
timeout: 800 // setter delay time
2121
})
22-
console.log('mock mounted')
22+
console.log('[antd-pro] mock mounted')
2323
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,10 +1970,10 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
19701970
dependencies:
19711971
color-convert "^1.9.0"
19721972

1973-
1974-
version "1.5.0-beta.1"
1975-
resolved "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-1.5.0-beta.1.tgz#9396e1bb4435c9bc5dc224e2bd888a000144a8f9"
1976-
integrity sha512-Fv5vxO+qHakbjsswgZ70/bjiZK4FphdFxv31VjBJKfhA5Ud7K6sNqC0BVpYS8nL0BwxGCVG8I30efNdU3VifnA==
1973+
1974+
version "1.5.0-rc.6"
1975+
resolved "https://registry.yarnpkg.com/ant-design-vue/-/ant-design-vue-1.5.0-rc.6.tgz#a9616550e0386bf7a6b1bf00aae5cadc13159967"
1976+
integrity sha512-ILUyMCKa2oYAaymlWNlT2gVsNBugUCLZl28pUR+RAWjxYvxxqh6PCZj6hO9gRRgdz5WvwK1Z1gi5ua2JROOZfQ==
19771977
dependencies:
19781978
"@ant-design/icons" "^2.1.1"
19791979
"@ant-design/icons-vue" "^2.0.0"

0 commit comments

Comments
 (0)