摘要: 如何确定我需要封装呢? 1.复用,如果觉得以后还会用到 2.你觉得方便,别的地方可能也需要用 3.如果不封装,页面代码臃肿的时候 1.封装API 使用场景:业务中最常见最普通的封装 详细在这篇:https://www.cnblogs.com/bisiyuan/p/16358612.html 2.注册 阅读全文
posted @ 2022-06-09 14:47 seven&night 阅读(517) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios' import { Message, MessageBox } from 'element-ui' import store from '../store' import { getToken } from '@/utils/auth' // 创建a 阅读全文
posted @ 2022-06-09 11:16 seven&night 阅读(478) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_40837310/article/details/123028044 阅读全文
posted @ 2022-06-09 11:12 seven&night 阅读(17) 评论(0) 推荐(0) 编辑