方法添加注释,中文版注释
This commit is contained in:
@@ -7,11 +7,11 @@ import service from '@/utils/request'
|
||||
// @Produce application/json
|
||||
// @Param data body api.CreateAuthorityPatams true "更改角色api权限"
|
||||
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /casbin/casbinPUpdate [post]
|
||||
// @Router /casbin/UpdateCasbin [post]
|
||||
|
||||
export const casbinPUpdate = (data) => {
|
||||
export const UpdateCasbin = (data) => {
|
||||
return service({
|
||||
url: "/casbin/casbinPUpdate",
|
||||
url: "/casbin/UpdateCasbin",
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
|
@@ -17,7 +17,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { getAllApis } from '@/api/api'
|
||||
import { casbinPUpdate, getPolicyPathByAuthorityId } from '@/api/casbin'
|
||||
import { UpdateCasbin, getPolicyPathByAuthorityId } from '@/api/casbin'
|
||||
export default {
|
||||
name: 'Apis',
|
||||
props: {
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
}
|
||||
casbinInfos.push(casbinInfo)
|
||||
})
|
||||
const res = await casbinPUpdate({
|
||||
const res = await UpdateCasbin({
|
||||
authorityId: this.activeUserId,
|
||||
casbinInfos
|
||||
})
|
||||
|
Reference in New Issue
Block a user