Commit ee822ace authored by liwenhong's avatar liwenhong

Merge branch 'withdrawList-h5' into test

parents 958c8ec4 c4c8f607
......@@ -60,11 +60,12 @@
@click="handleBlackList('黑名单')"
>黑名单</el-button
>
<!-- <el-button
<el-button
size="small"
@click="handleBlackList('白名单')"
>白名单</el-button
> -->
v-if="showBackBtn"
@click="$router.go(-1)"
>返回</el-button
>
</div>
</div>
</template>
......@@ -104,6 +105,7 @@ export default {
// constants
TABS,
showBackBtn: false, //操作成功后展示返回按钮
};
},
async created() {
......@@ -149,17 +151,17 @@ export default {
});
})
.catch(async () => {
try {
const res = await urlObj[action](params);
if(+res.code === 0) {
this.$message({
type: "success",
message: "操作成功",
});
console.log(res);
} catch (error) {
this.showBackBtn = false;
} else {
this.$message({
type: "error",
message: "请求操作失败",
message: res.reason,
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment