change 'module.exports = ' to 'export default'
This commit is contained in:
parent
1515115673
commit
dfa1ae0179
10
index.js
10
index.js
@ -1,16 +1,8 @@
|
||||
// uniapp people side tools
|
||||
|
||||
// #ifdef H5
|
||||
// import device from 'current-device' // https://github.com/matthewhudson/current-device
|
||||
// if (device.mobile()){
|
||||
// }else if (device.desktop()){
|
||||
// }else if (device.tablet()){
|
||||
// }
|
||||
// #endif
|
||||
|
||||
import './ican-H5Api.js' // 对齐H5Api: https://ext.dcloud.net.cn/plugin?id=415 // 注意要取消默认自带的 showToast https://uniapp.dcloud.io/api/system/clipboard?id=%e6%b3%a8%e6%84%8f
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
// 用直观的色彩,代替 uview 的命名方式:
|
||||
RED: 'error',
|
||||
GREEN: 'success',
|
||||
|
Loading…
Reference in New Issue
Block a user