? (storage = window.localStorage) : (storage = window.sessionStorage); storage.setItem(name, content); export default new Func();
# utils/index.js
import Vue from "vue";
import myService from "./request";
import Func from "./function";
Vue.prototype = Object.assign(Vue.prototype, {
  $axios: myService,
  $F: Func,
//使用
this.$F.setStorage()