Commit f371e2aa authored by “yiyousong”'s avatar “yiyousong”

fix:修改应用列表渲染

parent 4c59864b
......@@ -139,11 +139,13 @@ export default {
...mapMutations("site", ["SET_appTemplate"]),
// 获取数据模板
async getTempleteList() {
this.loading = true;
let res = await getTempleteList({
page: this.current,
size: this.size,
appId: this.appId,
});
this.loading = false;
if (res.data.code === 1) {
let { data, total } = res.data.data;
......
......@@ -106,7 +106,15 @@ import YSwitch from "../../../../components/yswitch/YSwitch.vue";
import AddApp from "../modal/AddApp.vue";
import CheckSite from "../modal/CheckSite.vue";
import { getAppList, deleteApp, saveApp } from "@/services/market";
const columns = [
export default {
components: {
YSwitch,
AddApp,
CheckSite,
},
data() {
const columns = [
{
title: "序号",
dataIndex: "num",
......@@ -125,7 +133,9 @@ const columns = [
},
{
title: "当前版本",
dataIndex: "version",
customRender: (text) => {
return <span>{"v" + text.version}</span>;
},
},
{
title: "应用主题",
......@@ -153,14 +163,7 @@ const columns = [
width: "10%",
scopedSlots: { customRender: "action" },
},
];
export default {
components: {
YSwitch,
AddApp,
CheckSite,
},
data() {
];
return {
api: process.env.VUE_APP_API_BASE_URL.includes("base")
? process.env.VUE_APP_API_BASE_URL.replace("base", "")
......
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