mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-15 21:56:38 +08:00
重构优化框架
这是一个大版本的更新 现在,框架更加稳定
This commit is contained in:
11
Yi.Vue2.x/src/util/helpers.js
Normal file
11
Yi.Vue2.x/src/util/helpers.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export function leadingSlash (str) {
|
||||
return str.startsWith('/') ? str : '/' + str
|
||||
}
|
||||
|
||||
export function trailingSlash (str) {
|
||||
return str.endsWith('/') ? str : str + '/'
|
||||
}
|
||||
|
||||
export const wait = timeout => {
|
||||
return new Promise(resolve => setTimeout(resolve, timeout))
|
||||
}
|
||||
Reference in New Issue
Block a user