GITLAB

frontend / freight-ma

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • freight-ma
  • mixins
  • page.js
  • c03c7b99   feat: 初始化项目 Browse Code »
    wuxiangrui
    2024-06-27 14:55:29 +0800  
page.js 241 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
import { hasPermission } from '@/services/global';

export default {
  onLoad: async function() {
    
  },
  methods: {
    // 判断是否有某项权限
    $permission(name) {
      return name ? hasPermission(name) : true;
    },
  }
}