1
This commit is contained in:
39
nx/api/sys.js
Normal file
39
nx/api/sys.js
Normal file
@@ -0,0 +1,39 @@
|
||||
import request from '@/nx/request'
|
||||
|
||||
export function getSysParameterBizByName(name) {
|
||||
return request({
|
||||
url: '/sys/sysParameterBiz/getSysParameterBizByName',
|
||||
method: 'GET',
|
||||
params: { name }
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
getSysParameterBizByName,
|
||||
// 获取验证图片以及 token
|
||||
getCaptchaCode: data => {
|
||||
return request({
|
||||
url: '/system/captcha/get',
|
||||
method: 'POST',
|
||||
data,
|
||||
custom: {
|
||||
showError: false,
|
||||
showLoading: false,
|
||||
isTransformResponse: false
|
||||
}
|
||||
})
|
||||
},
|
||||
// 滑动或者点选验证
|
||||
verifyCaptcha: data => {
|
||||
return request({
|
||||
url: '/system/captcha/check',
|
||||
method: 'POST',
|
||||
data,
|
||||
custom: {
|
||||
showError: false,
|
||||
showLoading: false,
|
||||
isTransformResponse: false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user