流浪のwolf

卷帝

导航

2023年2月16日

SQL的分类

摘要: DDL: 数据定义语言,用来定义数据库对象(数据表,表 ,字段) ; DML:数据操作语言,用来对数据库表中的数据进行增删改 ; DQL:数据库查询语言,用来查询数据库中的表的记录 DCL:数据控制语言,用来数据库用户控制数据库的访问权限 ; 阅读全文

posted @ 2023-02-16 19:24 流浪のwolf 阅读(15) 评论(0) 推荐(0) 编辑

pageTools 一个复用的通知条

摘要: <template> <el-card class="page-tools"> <el-row type="flex" align="middle" justify="space-between"> <div> <el-button v-if="text" icon="el-icon-info" s 阅读全文

posted @ 2023-02-16 07:37 流浪のwolf 阅读(15) 评论(0) 推荐(0) 编辑

v-imgerror作用:当图片链接无效的时候,显示默认图片内容

摘要: // 回顾自定义指令 // 作用: 自定义一些对DOM的操作快捷指令 // 前提: 指令就是用来操作DOM (v-if/v-show/v-for....) // 语法: Vue.directive(指令名,{ 配置对象 }) // 使用: <标签 v-指令名="表达式/变量" /> // impor 阅读全文

posted @ 2023-02-16 07:34 流浪のwolf 阅读(94) 评论(0) 推荐(0) 编辑

本地存储Cookies 的获取和存入 - js-Cookies

摘要: // 导入js-cookie 用于操作cookie import Cookies from "js-cookie"; const TokenKey = "hrsass_admin_token"; const LoginKey = "hrsass_login_time"; // 读取token exp 阅读全文

posted @ 2023-02-16 07:30 流浪のwolf 阅读(20) 评论(0) 推荐(0) 编辑

封装axios 到文件 request.js

摘要: import axios from "axios"; import { Message } from "element-ui"; // 拿token有2种方式:方式1: 读取vuex的state; 方式2:读取cookie import store from "@/store"; import ro 阅读全文

posted @ 2023-02-16 07:29 流浪のwolf 阅读(6) 评论(0) 推荐(0) 编辑

element + vue 实现背景图片设置

摘要: <template> <div> <el-row> <el-col :span="3"> <el-upload action="#" list-type="picture-card" :file-list="fileList" :on-preview="onPreview" :limit="limi 阅读全文

posted @ 2023-02-16 07:22 流浪のwolf 阅读(788) 评论(0) 推荐(0) 编辑