摘要: Vuex 中 Store 的模板化定义 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const store = new Vuex.Store({ //存放数据 state: { }, actions: { }, mutati 阅读全文
posted @ 2019-11-04 16:38 GNightDearLamb 阅读(90) 评论(0) 推荐(0)
摘要: 在入口文件加 1 header("Access-Control-Allow-Origin:*"); 2 header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE"); 3 header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X- 阅读全文
posted @ 2019-10-25 10:55 GNightDearLamb 阅读(1194) 评论(0) 推荐(0)