原创 vue-router——message: "Navigating to current location (XXX) is not allowed"

解決方法: 法一:重寫規則 import VueRouter from "vue-router"; const [routerPush, routerReplace] = [VueRouter.prototype.push,

原创 百度地圖點聚合優化重寫

vue 引入 <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=123123123"></script> <script ty

原创 js——Fetch

關於 fetch 取消 Fetch ES6以後Promise 出現解決地獄回調等不優雅的代碼風格。個人理解這個更像是一個生產者和消費者的關係,查看 Promise文檔,有以下兩個方法 Promise.race([promise1

原创 xcode 上架 ios

開發者官網 上架教程 升級教程 請求本機證書並保存(郵箱隨意) 設置並生成下載證書(地址) 通過上面操作獲得下面兩個證書 導入賬戶和對應證書(debug 是測試環境) 設置權限 生成 ipa 併發布到 app

原创 mac 問題

運行 vscode 導致發熱嚴重 在 setting.json 中配置以下 "search.followSymlinks": false, "files.exclude": { "**/.git": tr

原创 vue——vue-router 原理

vue-router 主要有三種模式 hash、history、abstract(服務端使用) 前端實現方式主要有以下兩種: hash ---- 利用 URL 中的 hash(“#”,window.location.hash)-

原创 XCode 錯誤

錯誤 Xcode11找不到Application Loader解決方式 解決方法 上傳卡在 authentication with app store 針對xcode11的解決方案如下: 打開Finder,前往如下文件夾~/Li

原创 模塊動態引入

directory {String} -讀取文件的路徑 useSubdirectories {Boolean} -是否遍歷文件的子目錄 regExp {RegExp} -匹配文件的正則 語法: require.context(

原创 下載 apk 並打開

1.安裝 cordova plugin add cordova-plugin-file-transfer cordova plugin add cordova-plugin-file-opener2 2.下載.apk var f

原创 canvas 實現拖拽選框、放大縮小等功能

<template> <div class="edit-anchor-zone"> <div class="edit-toolbar"> <span class="toolbar-icon-wrap" :

原创 vue——自動化組件

<!-- 不同條件,使用不同的組件 --> <component v-bind:is="markTool"></component> const toolMapper = { 0: ImageClassify, 1: I

原创 vue——利用 router 配置權限管理 及 resetRouter

router.js export const constantRoutes = [ { path: '/redirect', component: () => import('@/layout'), h

原创 Cordova 配置

Cordova 項目從 UIWebView 更換爲 WKWebView Cordova 項目中添加 cordova-plugin-wkwebview-engine 插件(當前最新版本1.2.1) cordova plugin ad

原创 初識 three.js

認識 three.js 官方文檔 安裝 yarn add three 引入 import * as THREE from 'three' 使用 threeAnimation() { const scen

原创 eslint / prettier 檢查格式配置、husky / lint-staged 強制校驗

eslint / prettier 檢查格式配置 eslint 和 prettier 區別 eslint(包括其他一些 lint 工具)的主要功能包含代碼格式的校驗,代碼質量的校驗。而 Prettier 只是代碼格式的校驗(並格式