使用keep-alive 在列表页中的修改

{
            title: "人员编号",
            align: "left",
            sortable: true,
            resizable: true,
            render: (h, { row }) => {
              return h("keep-alive",[
                h(
                  "a",

                  {
                    style:{
                      color:'#fff',
                      fontWeight:900,
                      underline:'underline'
                    },
                    on: {
                      click: () => {
                        this.$router.push({
                          name: "人员管理详情",
                          query: { jobId: row.id },
                        });
                      },
                    },
                  },
                  row.staffNum
                )
              ])
            },
          },

在详情页的修改

	mounted: function () {
      this.initData()
    },
    activated() {
      this.initData();
    }