# 使用参数
参数设置是提供开发人员、实施人员的动态系统配置参数,不需要去频繁修改后台配置文件,也无需重启服务器即可生效。
1、main.js 中引入全局变量和方法(已有)
import { getConfigKey } from '@/api/system/config'
Vue.prototype.getConfigKey = getConfigKey
2、页面使用参数
this.getConfigKey('参数键名').then(response => {
this.xxxxx = response.msg
})