相关文章推荐
旅途中的拐杖  ·  GCTA | Yang Lab·  5 月前    · 
愉快的钱包  ·  18 | ...·  2 年前    · 
霸气的酸菜鱼  ·  基础CherryPy - 知乎·  2 年前    · 
? (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()