Error in created hook: "TypeError: Cannot read properties of undefined (reading 'catch')"报错

问题遇到的现象和发生背景

不知道哪里出了问题,项目可以正常运行,使用的是element ui里的菜单导航

img

问题相关代码,请勿粘贴截图
 <el-submenu index="5" v-if="frist">
            <template slot="title">
              <i class="el-icon-document"></i>
              <span slot="title">日志</span>
            </template>
            <el-menu-item-group>
              <el-menu-item
                index="/LogInformation"
                @click="fun('/LogInformation', '日志信息')"
                >日志信息</el-menu-item
              >
            </el-menu-item-group> </el-submenu
          ><el-submenu index="6" v-if="frist">
            <template slot="title">
              <i class="el-icon-warning"></i>
              <span slot="title">告警</span>
            </template>
            <el-menu-item-group>
              <el-menu-item
                index="/WarningInformation"
                @click="fun('/WarningInformation', '告警信息')"
                >告警信息</el-menu-item
              >
            </el-menu-item-group>
          </el-submenu>

fun(path, tes) {
      this.$store.commit("setText", tes);
      this.$store.commit("setIndex", path);
      this.top = tes;
      this.b = path;
    },

运行结果及报错内容

只有点切换到另一个页面就会报这个错误,但是可以正常跳转

我的解答思路和尝试过的方法
我想要达到的结果

另外的一个页面的created里面的东西注释一下,看看还报错不