![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue3.0
河上街
这个作者很懒,什么都没留下…
展开
-
vue项目运行 访问服务接口 跨域问题
控制台报错 has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is意思是 cors阻止了你请求的资源(跨域问题);解决方法:spring项目中加入配置:详细代码:package com.ruoyi.framework.config;import org.springframework.context.annotation.Configuration;import org.springframew原创 2021-01-08 12:02:11 · 885 阅读 · 0 评论 -
vite vue3.0 配置拦截,路由跳转
1.配置路径优化vite.config.tsimport { resolve } from "path";function pathResolve(dir: string) { return resolve(__dirname, ".", dir);}module.exports = { alias: { "/@/": pathResolve("src"), }};2.配置路由import { createRouter, createWebHistor原创 2021-01-08 11:51:45 · 5367 阅读 · 0 评论 -
vue 3.0学习1
vue 3.0学习一、vue 3.0 diff算法优化1.vue 3.0六大亮点2.vue 3.0 如何变快的?1. diff方法优化 https://vue-next-template-explorer.netlify.app2. hoistStatic静态提升3. cacheHandlers事件侦听器缓存4. ssr渲染5.代码示例 编译模板的优化6.附录: PatchFlags一、vue 3.0 diff算法优化1.vue 3.0六大亮点Performance:性能比Vue 2. x快1.2原创 2020-10-13 16:07:28 · 202 阅读 · 0 评论