石广澎
2023-12-02 b18350e2f06c55f6aaae957631238bf02bb07b63
fix:
修复标签页 主页刷新后消失的问题
2个文件已修改
25 ■■■■ 已修改文件
admin-web/src/layout/components/TagsView/index.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/dashboard/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/layout/components/TagsView/index.vue
@@ -59,7 +59,19 @@
  },
  computed: {
    visitedViews() {
      return this.$store.state.tagsView.visitedViews;
      let visitedViews = this.$store.state.tagsView.visitedViews
      if (visitedViews&&visitedViews[0]&&visitedViews[0].title !== '主页') {
        visitedViews.unshift({
          title: '主页',
          path: '/dashboard',
          query: {},
          fullPath: '/dashboard',
          meta:{
            affix: true
          }
        })
      }
      return visitedViews;
    },
    routes() {
      return this.$store.state.permission.routes;
@@ -261,12 +273,15 @@
      font-size: 14px;
      margin-left: 10px;
      border-radius: 3px;
      &:first-of-type {
        margin-left: 20px;
      }
      &:last-of-type {
        margin-right: 20px;
      }
      &.active {
        background-color: #fff;
        color: #333333;
@@ -284,6 +299,7 @@
      }
    }
  }
  .contextmenu {
    margin: 0;
    background: #fff;
@@ -296,10 +312,12 @@
    font-weight: 400;
    color: #333;
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
    li {
      margin: 0;
      padding: 7px 16px;
      cursor: pointer;
      &:hover {
        background: #eee;
      }
@@ -318,10 +336,12 @@
      text-align: center;
      transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
      transform-origin: 100% 50%;
      &:before {
        transform: scale(0.6);
        display: inline-block;
      }
      &:hover {
        background-color: #b4bccc;
        color: #fff;
admin-web/src/views/dashboard/index.vue
@@ -34,7 +34,7 @@
            </el-table-column>
            <el-table-column prop="date" label="操作" fixed="right" align="center" width="80">
              <template slot-scope="scope">
                <el-button style="padding: 4.5px 15px" @click.native.prevent="aduitThis(scope.row)" size="mini" type="primary">处理</el-button>
                <el-button style="padding: 4px 15px" @click.native.prevent="aduitThis(scope.row)" size="mini" type="primary">处理</el-button>
              </template>
            </el-table-column>
            <el-empty slot="empty" description="暂无数据"></el-empty>
@@ -182,7 +182,6 @@
    };
  },
  created() {
    console.log(this.userInfo)
    this.getAuditList()
    this.getWarningList()
    getGoodsNumPrice().then(res => {