随笔分类 - vue封装
对于vue Element-ui的组件进行再次封装
摘要:安装: npm install sm-cryptoOr yarn add sm-crypto sm2: 获取密钥对: const sm2 = require('sm-crypto').sm2 let keypair = sm2.generateKeyPairHex() publicKey = key
阅读全文
摘要:html: <div class="home-main-dictum-info"> <span>{{ dictumInfo }}</span> <span class="home-main-typed-cursor" :class="{ 'is-typed-cursor-anmation': wat
阅读全文
摘要:新建组件: <template> <div class="table-container"> <el-table :data="tableData" width="100%" :height="height" :row-style="{ height: `${rowHeight}px` }" v-l
阅读全文
摘要:axios.interceptors.response.use( response => { // 如果返回的状态码为200,说明接口请求成功,可以正常拿到数据 // 否则的话抛出错误 if (response.status 200) { if (response.headers.x_auth_to
阅读全文
摘要:这是我项目的分页的目录结构,话不多说,直接上代码。 <template> <div class="pagination-container"> <el-pagination :background="background" :current-page.sync="currentPage" :page
阅读全文
摘要:import Vue from 'vue' import axios from 'axios' // 引入axios import QS from 'qs' // 引入qs模块,用来序列化post类型的数据 import Cookies from 'js-cookie' import router
阅读全文

浙公网安备 33010602011771号