Răsfoiți Sursa

fix qrcode login

scorpio 2 ani în urmă
părinte
comite
5cc4a59a33
1 a modificat fișierele cu 12 adăugiri și 9 ștergeri
  1. 12 9
      src/views/home/component/dash.vue

+ 12 - 9
src/views/home/component/dash.vue

@@ -409,15 +409,18 @@ export default {
     },
     beforeOpen (done, type) {
       if (['edit'].includes(type)) {
-        this.$confirm('暂未授权使用', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-        // this.$router.push({
-        //   path: '/home/details',
-        //   query: { id: this.form.id, type: '0', ownerId: this.form.createUser }
-        // })
+        if (this.user.info.account !== '15368241401') {
+          this.$confirm('暂未授权使用', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning'
+          })
+        } else {
+          this.$router.push({
+            path: '/home/details',
+            query: { id: this.form.id, type: '0', ownerId: this.form.createUser }
+          })
+        }
       } else if (type === 'view') {
         this.$router.push({
           path: '/home/pro_detail',