原创 vue項目打包後頁面空白,加入vue.config.js文件配置

vue項目根目錄創建vue.config.js module.exports = { // 基本路徑 publicPath: './', // 輸出文件目錄 outputDir: 'dist', // eslint-lo

原创 uniapp中scroll-view利用scroll-into-view實現錨點功能

<template> <view class="content"> <scroll-view scroll-y="true" :scroll-into-view="intoindex" style="height: 300p

原创 uniapp 不同端 頁面部分內容滾動設置scroll-view高度

<scroll-view scroll-y="true" :style="{height: scrollHeight}"> <block v-for="(item,index) in list" :key='index'>

原创 element-ui table 點擊某行高亮(修改背景色)

在el-table標籤中添加highlight-current-row <el-table highlight-current-row > 在style 裏面設置全局樣式: /* 用來設置當前頁面element全局table 選

原创 使用nvm安裝node時npm下載失敗

node成功了,npm沒成功 找到nvm的安裝路徑,手動刪除已安裝的node v10.16.0版本文件夾 在settings.txt中加後兩行代碼 root: d:\Users\Administrator\AppData\Roa

原创 如何在windows下切換node版本

解決辦法:1.用到某個版本對node重新卸載,安裝對應的版本 2.使用nvm 很明顯,第一種方法雖然也能解決node版本問題,但是太多麻煩,接下來介紹下nvm的安裝使用 第一步:下載nvm並安裝 (推薦使用nvm-setup.zi

原创 vue使用keep-alive緩存頁面,返回頁面時刷新部分數據

緩存頁面 // 路由配置 export default [ { path: '/', name: 'home', component: Home, meta: { keepAlive: true // 需要

原创 vue element-ui slelect實現過濾簡拼搜索

1.安裝依賴包 npm install pinyin-match --save 2.文件引入 import PinyinMatch from 'pinyin-match' 3.新建copyCustomer複製一份custome

原创 vue element-ui select下拉框點擊事件不起作用

常規寫法不起作用 @click=‘change’ <el-select v-model="value" filterable placeholder="請選擇" @click='change' > <el-option v-

原创 element-ui table 點擊獲取當前行索引

在el-table上添加:row-class-name和@row-click <el-table :row-class-name="tableRowClassName" @row-click = "onRowClick"> j

原创 element-ui table 導出Excel並解決數字列科學計數法問題

安裝依賴 cnpm install --save xlsx file-saver 頁面引入 import FileSaver from 'file-saver' import XLSX from 'xlsx' 添加方法 exp

原创 vue導出html頁面

div class="contentsss" ref="test"> <-- 要到處部分的html --> </div> <button @click="export2Excel">導出</button> <script> e

原创 git pull fatal: unable to access 'https://xxxxxxxx': The requested URL returned error:502

fatal: unable to access ‘https://xxxxxxxx’: The requested URL returned error:502 很大一部分原因是在首次提交代碼時把賬號密碼打錯了 解決辦法: 1、點