摘要: <div class="tittle"> <div class="imgs"><img src="./images/kind.png" width="50" height="50" alt=""></div> <div class="infos"><span>用户登录</span></div> 阅读全文
posted @ 2022-02-16 10:05 申伸 阅读(66) 评论(0) 推荐(0)
摘要: overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 阅读全文
posted @ 2022-02-16 10:03 申伸 阅读(36) 评论(0) 推荐(0)
摘要: 1.request.js import axios from 'axios' const service = axios.create({ baseURL: import.meta.env.VITE_APP_BASE_API, // url = base url + request url // w 阅读全文
posted @ 2022-02-15 11:55 申伸 阅读(86) 评论(0) 推荐(0)
摘要: 1.根目录创建 2.文件内容将以往的VUE_APP_XXX改为VITE_APP_XXX 3.package.json添加 --mode development 4.最后引用 以往的process.env.VITE_APP_XXX改为import.meta.env.VITE_APP_XXX 阅读全文
posted @ 2022-02-15 11:12 申伸 阅读(501) 评论(0) 推荐(0)
摘要: 1.npm install vue-router --save 2.src下创建router文件夹及index.ts文件,文件内容 import {createRouter, createWebHashHistory} from 'vue-router'; import home from "../ 阅读全文
posted @ 2022-02-15 10:56 申伸 阅读(604) 评论(0) 推荐(0)