mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-05 19:41:43 +08:00
✨不再需要强制要求保留代码author作者信息
This commit is contained in:
parent
8dcf11d01b
commit
618a9983e3
@ -3,7 +3,7 @@ const { join } = require("path");
|
||||
const fs = require("fs");
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 随机生成图片url。
|
||||
* @param width
|
||||
* @param height
|
||||
@ -14,7 +14,7 @@ function handleRandomImage(width = 50, height = 50) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 处理所有 controller 模块,npm run serve时在node环境中自动输出controller文件夹下Mock接口,请勿修改。
|
||||
* @returns {[]}
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 路由守卫,目前两种模式:all模式与intelligence模式
|
||||
*/
|
||||
import router from "@/router";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 全局变量配置
|
||||
*/
|
||||
module.exports = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 公共布局导出,已封装成npm,便于此后在线升级,
|
||||
* 当然也存在一定的弊端,给开发者自定义增加了一定的困难,
|
||||
* 如果您一定要进行高度自定义,请仔细阅读讨论群文档,layouts本地化篇。
|
||||
|
@ -4,7 +4,7 @@ import store from "./store";
|
||||
import router from "./router";
|
||||
import "./plugins";
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 生产环境默认都使用mock,如果正式用于生产环境时,记得去掉
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description router全局配置,如有必要可分文件抽离,其中asyncRoutes只有在intelligence模式下才会用到,vip文档中已提供路由的基础图标与小清新图标的配置方案,请仔细阅读
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 导入所有 vuex 模块,自动加入namespaced:true,用于解决vuex命名冲突,请勿修改。
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 异常捕获的状态拦截,请勿修改
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 路由拦截状态管理,目前两种模式:all模式与intelligence模式,其中partialRoutes是菜单暂未使用
|
||||
*/
|
||||
import { asyncRoutes, constantRoutes } from "@/router";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 所有全局配置的状态管理,如无必要请勿修改
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 代码生成机状态管理
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description tabsBar多标签页逻辑,前期借鉴了很多开源项目发现都有个共同的特点很繁琐并不符合框架设计的初衷,后来在github用户cyea的启发下完成了重构,请勿修改
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 登录、获取用户信息、退出登录、清除accessToken逻辑,不建议修改
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 全局加载动画
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 暗黑之子主题(VIP群专享)
|
||||
*/
|
||||
@charset "utf-8";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 荣耀典藏主题(VIP群专享)
|
||||
*/
|
||||
@charset "utf-8";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 绿荫操场主题(VIP群专享)
|
||||
*/
|
||||
@charset "utf-8";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 海洋之心主题(VIP群专享)
|
||||
*/
|
||||
@charset "utf-8";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description vue过渡动画
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 全局样式
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 全局主题变量配置,VIP文档内提供多种好看的配色方案(ant-design风格、layui风格、iview风格),请查看VIP文档主题配置篇
|
||||
*/
|
||||
/* stylelint-disable */
|
||||
|
@ -2,7 +2,7 @@ import { storage, tokenTableName } from "@/config/settings";
|
||||
import cookie from "js-cookie";
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 获取accessToken
|
||||
* @returns {string|ActiveX.IXMLDOMNode|Promise<any>|any|IDBRequest<any>|MediaKeyStatus|FormDataEntryValue|Function|Promise<Credential | null>}
|
||||
*/
|
||||
@ -23,7 +23,7 @@ export function getAccessToken() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 存储accessToken
|
||||
* @param accessToken
|
||||
* @returns {void|*}
|
||||
@ -45,7 +45,7 @@ export function setAccessToken(accessToken) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 移除accessToken
|
||||
* @returns {void|Promise<void>}
|
||||
*/
|
||||
|
@ -10,7 +10,7 @@ function clipboardError() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 复制数据
|
||||
* @param text
|
||||
* @param event
|
||||
|
@ -5,7 +5,7 @@ const privateKey =
|
||||
"MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMFPa+v52FkSUXvcUnrGI/XzW3EpZRI0s9BCWJ3oNQmEYA5luWW5p8h0uadTIoTyYweFPdH4hveyxlwmS7oefvbIdiP+o+QIYW/R4Wjsb4Yl8MhR4PJqUE3RCy6IT9fM8ckG4kN9ECs6Ja8fQFc6/mSl5dJczzJO3k1rWMBhKJD/AgMBAAECgYEAucMakH9dWeryhrYoRHcXo4giPVJsH9ypVt4KzmOQY/7jV7KFQK3x//27UoHfUCak51sxFw9ek7UmTPM4HjikA9LkYeE7S381b4QRvFuf3L6IbMP3ywJnJ8pPr2l5SqQ00W+oKv+w/VmEsyUHr+k4Z+4ik+FheTkVWp566WbqFsECQQDjYaMcaKw3j2Zecl8T6eUe7fdaRMIzp/gcpPMfT/9rDzIQk+7ORvm1NI9AUmFv/FAlfpuAMrdL2n7p9uznWb7RAkEA2aP934kbXg5bdV0R313MrL+7WTK/qdcYxATUbMsMuWWQBoS5irrt80WCZbG48hpocJavLNjbtrjmUX3CuJBmzwJAOJg8uP10n/+ZQzjEYXh+BszEHDuw+pp8LuT/fnOy5zrJA0dO0RjpXijO3vuiNPVgHXT9z1LQPJkNrb5ACPVVgQJBALPeb4uV0bNrJDUb5RB4ghZnIxv18CcaqNIft7vuGCcFBAIPIRTBprR+RuVq+xHDt3sNXdsvom4h49+Hky1b0ksCQBBwUtVaqH6ztCtwUF1j2c/Zcrt5P/uN7IHAd44K0gIJc1+Csr3qPG+G2yoqRM8KVqLI8Z2ZYn9c+AvEE+L9OQY=";
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description RSA加密
|
||||
* @param data
|
||||
* @returns {Promise<{param: PromiseLike<ArrayBuffer>}|*>}
|
||||
@ -31,7 +31,7 @@ export async function encryptedData(data) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description RSA解密
|
||||
* @param data
|
||||
* @returns {PromiseLike<ArrayBuffer>}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description all模式渲染后端返回路由
|
||||
* @param constantRoutes
|
||||
* @returns {*}
|
||||
@ -27,7 +27,7 @@ export function convertRouter(asyncRoutes) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断当前路由是否包含权限
|
||||
* @param permissions
|
||||
* @param route
|
||||
@ -42,7 +42,7 @@ function hasPermission(permissions, route) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description intelligence模式根据permissions数组拦截路由
|
||||
* @param routes
|
||||
* @param permissions
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 格式化时间
|
||||
* @param time
|
||||
* @param cFormat
|
||||
@ -45,7 +45,7 @@ export function parseTime(time, cFormat) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 格式化时间
|
||||
* @param time
|
||||
* @param option
|
||||
@ -90,7 +90,7 @@ export function formatTime(time, option) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 将url请求参数转为json格式
|
||||
* @param url
|
||||
* @returns {{}|any}
|
||||
@ -112,7 +112,7 @@ export function paramObj(url) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 父子关系的数组转换成树形结构数据
|
||||
* @param data
|
||||
* @returns {*}
|
||||
@ -143,7 +143,7 @@ export function translateDataToTree(data) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 树形结构数据转换成父子关系的数组
|
||||
* @param data
|
||||
* @returns {[]}
|
||||
@ -170,7 +170,7 @@ export function translateTreeToData(data) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 10位时间戳转换
|
||||
* @param time
|
||||
* @returns {string}
|
||||
@ -192,7 +192,7 @@ export function tenBitTimestamp(time) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 13位时间戳转换
|
||||
* @param time
|
||||
* @returns {string}
|
||||
@ -214,7 +214,7 @@ export function thirteenBitTimestamp(time) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 获取随机id
|
||||
* @param length
|
||||
* @returns {string}
|
||||
@ -229,7 +229,7 @@ export function uuid(length = 32) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description m到n的随机数
|
||||
* @param m
|
||||
* @param n
|
||||
@ -240,7 +240,7 @@ export function random(m, n) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description addEventListener
|
||||
* @type {function(...[*]=)}
|
||||
*/
|
||||
@ -253,7 +253,7 @@ export const on = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description removeEventListener
|
||||
* @type {function(...[*]=)}
|
||||
*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { title } from "@/config/settings";
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 设置标题
|
||||
* @param pageTitle
|
||||
* @returns {string}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import store from "@/store";
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 检查权限
|
||||
* @param value
|
||||
* @returns {boolean}
|
||||
|
@ -19,7 +19,7 @@ import { isArray } from "@/utils/validate";
|
||||
let loadingInstance;
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断当前url是否需要加loading
|
||||
* @param {*} config
|
||||
* @returns
|
||||
@ -35,7 +35,7 @@ const needLoading = (config) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 处理code异常
|
||||
* @param {*} code
|
||||
* @param {*} msg
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判读是否为外链
|
||||
* @param path
|
||||
* @returns {boolean}
|
||||
@ -9,7 +9,7 @@ export function isExternal(path) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 校验密码是否小于6位
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -19,7 +19,7 @@ export function isPassword(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否为数字
|
||||
* @param value
|
||||
* @returns {boolean}
|
||||
@ -30,7 +30,7 @@ export function isNumber(value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是名称
|
||||
* @param value
|
||||
* @returns {boolean}
|
||||
@ -41,7 +41,7 @@ export function isName(value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否为IP
|
||||
* @param ip
|
||||
* @returns {boolean}
|
||||
@ -52,7 +52,7 @@ export function isIP(ip) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是传统网站
|
||||
* @param url
|
||||
* @returns {boolean}
|
||||
@ -63,7 +63,7 @@ export function isUrl(url) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是小写字母
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -74,7 +74,7 @@ export function isLowerCase(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是大写字母
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -85,7 +85,7 @@ export function isUpperCase(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是大写字母开头
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -96,7 +96,7 @@ export function isAlphabets(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是字符串
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -106,7 +106,7 @@ export function isString(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是数组
|
||||
* @param arg
|
||||
* @returns {arg is any[]|boolean}
|
||||
@ -119,7 +119,7 @@ export function isArray(arg) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是端口号
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -130,7 +130,7 @@ export function isPort(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是手机号
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -141,7 +141,7 @@ export function isPhone(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是身份证号(第二代)
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -152,7 +152,7 @@ export function isIdCard(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否是邮箱
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -163,7 +163,7 @@ export function isEmail(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否中文
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -174,7 +174,7 @@ export function isChina(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否为空
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -190,7 +190,7 @@ export function isBlank(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否为固话
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -201,7 +201,7 @@ export function isTel(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断是否为数字且最多两位小数
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -212,7 +212,7 @@ export function isNum(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断经度 -180.0~+180.0(整数部分为0~180,必须输入1到5位小数)
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -223,7 +223,7 @@ export function isLongitude(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description 判断纬度 -90.0~+90.0(整数部分为0~90,必须输入1到5位小数)
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
@ -234,7 +234,7 @@ export function isLatitude(str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @copyright chuzhixin 1204505056@qq.com
|
||||
* @author chuzhixin 1204505056@qq.com (不想保留author可删除)
|
||||
* @description rtsp校验,只要有rtsp://
|
||||
* @param str
|
||||
* @returns {boolean}
|
||||
|
Loading…
x
Reference in New Issue
Block a user