摘要: VUE项目使用.env配置多种环境 本文来源:VUE项目使用.env配置多种环境_.env.prod-CSDN博客 作者:櫆溟-CSDN博客 在Vue项目中,可以使用.env文件配置全局环境变量,就如同SpringBoot项目的application文件一样 第一步,创建多个环境配置文件 .env文 阅读全文
posted @ 2024-02-28 09:26 RealityAndLife 阅读(479) 评论(0) 推荐(0)
摘要: npm导入组件 npm install uview-ui@2.0.36 后面跟上自己的版本 或者 npm install uview-ui //检查 console.log(uni.$u.config.v);可以查看自己是否导入成功 【main.js】import uView from 'uview 阅读全文
posted @ 2023-11-30 15:10 RealityAndLife 阅读(193) 评论(0) 推荐(0)
摘要: import { onMounted, onUnmounted, reactive } from 'vue' const data=reactive({ oldScrollTop:0, }); const scrolling=()=>{ // 滚动条距文档顶部的距离 let scrollTop =w 阅读全文
posted @ 2023-10-17 18:23 RealityAndLife 阅读(935) 评论(0) 推荐(0)
摘要: import com.fasterxml.jackson.databind.JsonNode; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annot 阅读全文
posted @ 2023-08-07 17:08 RealityAndLife 阅读(1527) 评论(1) 推荐(0)
摘要: 官方文档:https://prazdevs.github.io/pinia-plugin-persistedstate/zh/ 安装插件 pinia-plugin-persistedstate pnpm add pinia-plugin-persistedstate -D 使用 main.js配置 阅读全文
posted @ 2023-08-05 10:28 RealityAndLife 阅读(110) 评论(0) 推荐(0)
摘要: import { createRouter, createWebHistory } from 'vue-router' // createRouter 创建路由实例 // 配置 history 模式 // 1. history模式:createWebHistory 地址栏不带 # // 2. has 阅读全文
posted @ 2023-08-05 09:35 RealityAndLife 阅读(47) 评论(0) 推荐(0)
摘要: 我的第一篇博客 hello boke 阅读全文
posted @ 2023-08-04 11:07 RealityAndLife 阅读(6) 评论(0) 推荐(0)