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 · 976 阅读 · 0 评论 -
vite vue3.0 配置拦截,路由跳转
1.配置路径优化 vite.config.ts import { 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 · 5751 阅读 · 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 · 251 阅读 · 0 评论
分享