Commit e514108b by hank

fix bug

parent f8bfa01e
......@@ -46,7 +46,7 @@ service.interceptors.response.use(
const res = response.data
console.log(res.code, res.code !== '0', String(res.code))
// if the custom code is not 20000, it is judged as an error.
if (res.code !== '0' && res.code) {
if (res.code !== '0' && res.code && res.code !== 20000) {
Message({
message: res.msg || ' response Error',
type: 'error',
......
......@@ -51,6 +51,11 @@
<span>{{ scope.row.templateCount }}</span>
</template>
</el-table-column>
<el-table-column label="资源路径" width="210px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.frameUrl.split('/').splice(-2, 3)[0]}}</span>
</template>
</el-table-column>
<!-- <el-table-column label="状态" class-name="status-col" width="100">
<template slot-scope="{row}">
<el-tag :type="row.templateShow | statusFilter">
......@@ -60,6 +65,9 @@
</el-table-column> -->
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button type="primary" size="mini">
<a :href="row.frameUrl" target="_blank">预览</a>
</el-button>
<el-button type="primary" size="mini" @click="handleUpdate(row)">
详情
</el-button>
......
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 sign in to comment