1、新增 getCurrentDataType.js 文件

 

import cookieUtils from '@/config/cookieUtils'

function getCurrentDataType () {
  let type = cookieUtils.get('curr_sjjc_data_type')
  if (type === '0' || type === '1') {
    return type
  }
  return '0'
}

export { getCurrentDataType }

 

 

2. 在main.js 中设置

 

import { getCurrentDataType } from '@/utils/getCurrentDataType.js'

.
.
.
.
.
.

Vue.prototype.$getCurrentDataType = getCurrentDataType

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-02-20
  • 2021-11-12
相关资源
相似解决方案