管理后台系统管理-版本管理修改更新选中当前版本接口

This commit is contained in:
YeMingfei666 2024-08-29 09:10:56 +08:00
parent 7d3251f1d6
commit 9aaeb7f0d6
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export const $version = new $api('/api/tbVersion')
*/
export function $upSel(data) {
return request({
url: 'upSel',
url: 'api/tbVersion/upSel',
method: "put",
data: {
shopId: localStorage.getItem("shopId"),

View File

@ -49,7 +49,13 @@
:active-value="1"
:inactive-value="0"
></el-switch>
<el-button @click="changeSel(scope.row)" v-else type="primary" size="mini">设置为当前版本</el-button>
<el-switch
v-else
@change="changeSel(scope.row)"
v-model="scope.row.sel"
:active-value="1"
:inactive-value="0"
></el-switch>
</template>
</el-table-column>
<el-table-column label="是否强制更新" prop="createdAt">