上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: import axios from "axios" import nprogress from "nprogress" import "nprogress/nprogress.css" const requests = axios.create({ baseURL : "/api", timeout 阅读全文
posted @ 2023-07-28 00:36 sgj191024 阅读(4) 评论(0) 推荐(0) 编辑
摘要: import requests from "./requests" export const categoryList = () =>{ return requests({ url:"/product/getBaseCategoryList", method : "get" }) } import 阅读全文
posted @ 2023-07-28 00:35 sgj191024 阅读(101) 评论(0) 推荐(0) 编辑
摘要: import axios from "axios" const requests = axios.create({ baseURL : "/api", timeout : 5000 }) requests.interceptors.request.use((config) =>{ return co 阅读全文
posted @ 2023-07-27 23:55 sgj191024 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 在router中重写push VueRouter.prototype.push = function(location,resolve,reject){ if(resolve && reject){ orginPush.call(this,location, resolve,reject) }els 阅读全文
posted @ 2023-07-26 22:39 sgj191024 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.param 给将要跳转到的路由加占位 { path:"/search/:keyword", component:Search, meta:{ show:true } }, goSearch(){ this.$router.push("/search/" + this.keyword) } 2.q 阅读全文
posted @ 2023-07-26 21:36 sgj191024 阅读(22) 评论(0) 推荐(0) 编辑
摘要: routes:[ { path:"/home", component:Home, meta:{ show:true } }, { path:"/login", component:Login, meta:{ show:false } }, { path:"/register", component: 阅读全文
posted @ 2023-07-26 20:41 sgj191024 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1.关闭eslint const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, lintOnSave: false }) 阅读全文
posted @ 2023-07-16 23:48 sgj191024 阅读(1) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num1 = scanner.nextInt(); int num2 = scanner.nextInt(); int[][] 阅读全文
posted @ 2023-07-16 21:53 sgj191024 阅读(8) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { //5 17 Scanner scanner = new Scanner(System.in); while (scanner.hasNext()){ int current = scanner.nextInt(); 阅读全文
posted @ 2023-07-16 19:55 sgj191024 阅读(40) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { /** * 示例: * * 输入:19 * 输出:true * 解释: * 1^2 + 9^2 = 82 * 8^2 + 2^2 = 68 * 6^2 + 8^2 = 100 * 1^2 + 0^2 + 0^2 = 1 阅读全文
posted @ 2023-07-16 14:02 sgj191024 阅读(20) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页