mian.js 中 原型挂载
Vue.prototype.$addStorageEvent = function (type, key, data) {
if (type === 1) {
// 创建一个StorageEvent事件
let newStorageEvent = document.createEvent('StorageEvent');
const storage = {
setItem: function (k, val)<