Kaynağa Gözat

preview for ali-video

hare8999@163.com 2 yıl önce
ebeveyn
işleme
8e332bb855

+ 1 - 1
src/store/modules/mx-permission.js

@@ -102,7 +102,6 @@ const permission = {
       const topRoutes = state.topbarRouters
       const ancestors = { fullMatched: false, matches: [] }
       let targetPath = to.path
-      debugger
       traceAncestorRoutesInMenus(topRoutes, targetPath, ancestors)
       if (!ancestors.fullMatched && to.meta?.parentPath) {
         targetPath = to.meta.parentPath
@@ -224,6 +223,7 @@ function handleAsyncRouterLocalReference(route, parent, level) {
   // 属性挂在meta上可以不受匹配方法等因素的影响,最大限度保留设置
   route.meta = route.meta || {}
   // 挂parent可逆向追溯, 不能挂反向引用vuex内部会深拷贝!
+  // route.parent = parent
   route.meta.parentPath = parent?.path || ''
   // 挂level可直接定位top/middle/side
   route.meta.level = level

+ 1 - 1
src/views/accurateTeaching/custom/custom.vue

@@ -257,7 +257,7 @@ export default {
           "https://view.officeapps.live.com/op/view.aspx?src=" +
             row.resourcesUrl
         );
-      } else if (row.resourcesUrl.indexOf(".mp4") != -1) {
+      } else if (row.resourcesUrl.indexOf(".mp4") != -1 || !row.resourcesUrl.includes('.')) {
         this.aliIdType = row.aliIdType;
         this.src = row.resourcesUrl;
         this.dialogVideo = true;

+ 1 - 1
src/views/accurateTeaching/library/index.vue

@@ -331,7 +331,7 @@ export default {
           "https://view.officeapps.live.com/op/view.aspx?src=" +
             row.resourcesUrl
         );
-      } else if (row.resourcesUrl.indexOf(".mp4") != -1) {
+      } else if (row.resourcesUrl.indexOf(".mp4") != -1 || !row.resourcesUrl.includes('.')) {
         this.aliIdType = row.aliIdType;
         this.src = row.resourcesUrl;
         this.dialogVideo = true;