Bootstrap

vue3使用base64

引入base64

 yarn add js-base64

页面加密

import {Base64} from 'js-base64'

  const token = sessionStorage.getItem('token');
  var url = "http://192.168.3.109:8012/#/home?ut=" + encodeURIComponent(Base64.encode(token));
  window.open(url, "_blank");

解密

import {Base64} from 'js-base64'
  let tokens=Base64.decode(token)

;