vue
一只软件大白
希望多多指教
展开
-
vue出现 The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard
问题vue中使用axios+整合后端php请求接口出现AccesstoXMLHttpRequestat'http://localhost:82/clien/aboutUs'fromorigin'http://localhost'hasbeenblockedbyCORSpolicy:Thevalueofthe'Access-Control-Allow-Orig...原创 2020-03-25 15:14:42 · 10655 阅读 · 4 评论 -
vue根据请求头自动实现国际化
一、创建文件在src下创建文件i18n文件,在它下创建i18n.js文件如图二、在assets下创建lang目录,在其下在创建en.js和cn.js两文件如图:en.js(英语)module.exports = { base : { loginerroe:"你的会话已过期,请重新登录", next:"下一步" }}cn.js(中文)modu...原创 2020-03-25 15:08:51 · 697 阅读 · 0 评论