按钮级别的新版本,多级别的组织架构
loulijun2021
2023-07-27 84ef53c807ec6dddf4a0226b11b0e0f9f6d9cec0
src/main.js
@@ -70,23 +70,6 @@
// 引用修改过的gantt
Vue.use(vGanttChart)
import { setCookie } from '@/utils/auth' // 引用修改过的gantt
// 判断是否走原平台过来
if (window.location.hash.indexOf('guid') !== -1) {
  setCookie('cloud', true)// 走云平台
  const url = window.location.hash.split('?')[1]
  const arr = url.split('&')
  setCookie('guid', arr[0].split('=')[1])
  setCookie('userid', arr[1].split('=')[1])
  setCookie('admin', arr[2].split('=')[1])
  setCookie('navTabId', arr[2].split('=')[1])
  setCookie('username', decodeURIComponent(arr[3].split('=')[1]))
  setCookie('password', arr[4].split('=')[1])
  setCookie('usertype', arr[5].split('=')[1])
  setCookie('rediskey', arr[6].split('=')[1])
}
new Vue({
  el: '#app',
  router,