mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
13 lines
266 B
JavaScript
13 lines
266 B
JavaScript
export default {
|
|
install (Vue) {
|
|
// px 转 rem
|
|
Vue.prototype.pxTorem = (px, needUnit) => {
|
|
if (needUnit) {
|
|
return px / 19.2 + 'rem'
|
|
} else {
|
|
return px / 19.2
|
|
}
|
|
}
|
|
}
|
|
}
|