fix(接口定义): 修复只读用户可以添加mock的缺陷

This commit is contained in:
wxg0103 2022-08-30 16:37:38 +08:00 committed by 刘瑞斌
parent c955de647b
commit e5168577cd
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-button type="primary" size="small" style="float: right;margin-right: 50px;" @click="saveMockExpectConfig" <el-button type="primary" size="small" style="float: right;margin-right: 50px;" @click="saveMockExpectConfig"
title="ctrl + s">{{ title="ctrl + s" v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">{{
$t('commons.save') $t('commons.save')
}} }}
</el-button> </el-button>

View File

@ -8,6 +8,7 @@
:clearable="true" :clearable="true"
v-model="tableSearch"/> v-model="tableSearch"/>
<el-button type="primary" style="float: right;margin-right: 10px" icon="el-icon-plus" size="small" <el-button type="primary" style="float: right;margin-right: 10px" icon="el-icon-plus" size="small"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"
@click="addApiMock">{{ $t('commons.add') }} @click="addApiMock">{{ $t('commons.add') }}
</el-button> </el-button>