1 2 3 4 5 ··· 7 下一页
摘要: 踩坑:element国际化 动态设置语言必须使用服务端中的store状态才可以 import VueI18n from 'vue-i18n' import enLocale from 'element-ui/lib/locale/lang/en' import ElementLocale from 阅读全文
posted @ 2024-08-08 14:16 hello蔚蓝 阅读(145) 评论(0) 推荐(0)
摘要: 参考了其他类似网址后,优化思路为: 1.将官网文章详情页拆分为一个html模板服务 2.官网与模板服务互通,渲染地址为${模板域名地址}/article/${文章id}; 3.添加与官网一致的Header,Footer组件实现无缝切换 使用node搭建了一个模板服务测试,没有添加很多样式 代码 vi 阅读全文
posted @ 2024-06-25 18:34 hello蔚蓝 阅读(67) 评论(0) 推荐(0)
摘要: 在已经优化了对应不同语言以及页面添加title,meta,desc之上,网页的爬虫收录总数为19 本次优化汇率页面,最终实现收录总数278 实现方法针对汇率兑换的页面较为简单,依赖循环生成所有汇率对,在挂载前阶段进行html拼接,插入指定的dom即可,设置隐藏样式 let rateList = [ 阅读全文
posted @ 2024-06-25 18:23 hello蔚蓝 阅读(38) 评论(0) 推荐(0)
摘要: 目标实现: 1.语言切换 2.路由切换 nuxt.config.js export default = { modules: [ "@nuxtjs/i18n", ], i18n: { langDir: "locales/", // 本地语言配置目录 locales: [ { code: "en", 阅读全文
posted @ 2024-06-24 15:50 hello蔚蓝 阅读(822) 评论(1) 推荐(0)
摘要: 安装依赖,项目nuxt2 版本nuxt2.15.8 cnpm i @nuxtjs/i18n@7.3.1 vuex配置全局语言 export const state = () => ({ language: "en", token: "", }); export const mutations = { 阅读全文
posted @ 2024-06-21 17:14 hello蔚蓝 阅读(440) 评论(0) 推荐(0)
摘要: chcp 65001 echo 测试环境 @echo off REM 执行 git add . call git status REM 执行 git add . call git add . REM 提示用户输入提交信息 set /P commitMsg=请输入提交信息: REM 执行 git co 阅读全文
posted @ 2024-06-14 15:42 hello蔚蓝 阅读(37) 评论(0) 推荐(0)
摘要: // 安装对应依赖 // npm i scp2@0.5.0 ora@4.0.0 const path = require("path"); // 引入scp2库 const scpClient = require("scp2"); // node模块 - node.js 命令行环境的 loading 阅读全文
posted @ 2024-06-12 17:20 hello蔚蓝 阅读(30) 评论(0) 推荐(0)
摘要: const qiniu = require('qiniu'); const fs = require('fs'); const path = require('path'); // 七牛云配置 const accessKey = 'accessKey'; const secretKey = 'sec 阅读全文
posted @ 2024-06-12 14:24 hello蔚蓝 阅读(69) 评论(0) 推荐(0)
摘要: 项目使用vue3 + pinia import { defineStore } from 'pinia'; import { getCurrentInstance } from 'vue'; export const useSocketStore = defineStore('socket', () 阅读全文
posted @ 2024-03-05 11:33 hello蔚蓝 阅读(737) 评论(0) 推荐(0)
摘要: // 通用请求拦截器 import axios from "axios"; import Qs from "qs"; import store from "@/store"; import router from "@/router"; import { Loading, Message } fro 阅读全文
posted @ 2023-12-20 14:20 hello蔚蓝 阅读(121) 评论(0) 推荐(0)
1 2 3 4 5 ··· 7 下一页