jobsys-newbie
Version:
Enhanced component based on ant-design-vue
25 lines (22 loc) • 525 B
JavaScript
import * as components from "./components"
import { _configStatus } from "./hooks"
import i18n from "./i18n" // 引入 i18n 配置
export * from "./components"
export default {
install(app) {
app.use(i18n)
for (const componentKey in components) {
const component = components[componentKey]
app.use(component)
}
},
/**
* 用于配置一些全局的工具参数
* @param httpStatus
*/
config({ httpStatus }) {
if (httpStatus && Object.keys(httpStatus).length) {
_configStatus(httpStatus)
}
},
}