Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王淑敏
vipSupplier
Commits
618a9983
Commit
618a9983
authored
Oct 03, 2020
by
chuzhixin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
不再需要强制要求保留代码author作者信息
parent
8dcf11d0
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
68 additions
and
68 deletions
+68
-68
mock/utils/index.js
+2
-2
src/config/permission.js
+1
-1
src/config/settings.js
+1
-1
src/layouts/components/index.js
+1
-1
src/main.js
+1
-1
src/router/index.js
+1
-1
src/store/index.js
+1
-1
src/store/modules/errorLog.js
+1
-1
src/store/modules/routes.js
+1
-1
src/store/modules/settings.js
+1
-1
src/store/modules/table.js
+1
-1
src/store/modules/tabsBar.js
+1
-1
src/store/modules/user.js
+1
-1
src/styles/loading.scss
+1
-1
src/styles/themes/dark.scss
+1
-1
src/styles/themes/glory.scss
+1
-1
src/styles/themes/green.scss
+1
-1
src/styles/themes/ocean.scss
+1
-1
src/styles/transition.scss
+1
-1
src/styles/vab.scss
+1
-1
src/styles/variables.scss
+1
-1
src/utils/accessToken.js
+3
-3
src/utils/clipboard.js
+1
-1
src/utils/encrypt.js
+2
-2
src/utils/handleRoutes.js
+3
-3
src/utils/index.js
+11
-11
src/utils/pageTitle.js
+1
-1
src/utils/permission.js
+1
-1
src/utils/request.js
+2
-2
src/utils/validate.js
+22
-22
No files found.
mock/utils/index.js
View file @
618a9983
...
@@ -3,7 +3,7 @@ const { join } = require("path");
...
@@ -3,7 +3,7 @@ const { join } = require("path");
const
fs
=
require
(
"fs"
);
const
fs
=
require
(
"fs"
);
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 随机生成图片url。
* @description 随机生成图片url。
* @param width
* @param width
* @param height
* @param height
...
@@ -14,7 +14,7 @@ function handleRandomImage(width = 50, height = 50) {
...
@@ -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接口,请勿修改。
* @description 处理所有 controller 模块,npm run serve时在node环境中自动输出controller文件夹下Mock接口,请勿修改。
* @returns {[]}
* @returns {[]}
*/
*/
...
...
src/config/permission.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 路由守卫,目前两种模式:all模式与intelligence模式
* @description 路由守卫,目前两种模式:all模式与intelligence模式
*/
*/
import
router
from
"@/router"
;
import
router
from
"@/router"
;
...
...
src/config/settings.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 全局变量配置
* @description 全局变量配置
*/
*/
module
.
exports
=
{
module
.
exports
=
{
...
...
src/layouts/components/index.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 公共布局导出,已封装成npm,便于此后在线升级,
* @description 公共布局导出,已封装成npm,便于此后在线升级,
* 当然也存在一定的弊端,给开发者自定义增加了一定的困难,
* 当然也存在一定的弊端,给开发者自定义增加了一定的困难,
* 如果您一定要进行高度自定义,请仔细阅读讨论群文档,layouts本地化篇。
* 如果您一定要进行高度自定义,请仔细阅读讨论群文档,layouts本地化篇。
...
...
src/main.js
View file @
618a9983
...
@@ -4,7 +4,7 @@ import store from "./store";
...
@@ -4,7 +4,7 @@ import store from "./store";
import
router
from
"./router"
;
import
router
from
"./router"
;
import
"./plugins"
;
import
"./plugins"
;
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 生产环境默认都使用mock,如果正式用于生产环境时,记得去掉
* @description 生产环境默认都使用mock,如果正式用于生产环境时,记得去掉
*/
*/
...
...
src/router/index.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description router全局配置,如有必要可分文件抽离,其中asyncRoutes只有在intelligence模式下才会用到,vip文档中已提供路由的基础图标与小清新图标的配置方案,请仔细阅读
* @description router全局配置,如有必要可分文件抽离,其中asyncRoutes只有在intelligence模式下才会用到,vip文档中已提供路由的基础图标与小清新图标的配置方案,请仔细阅读
*/
*/
...
...
src/store/index.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 导入所有 vuex 模块,自动加入namespaced:true,用于解决vuex命名冲突,请勿修改。
* @description 导入所有 vuex 模块,自动加入namespaced:true,用于解决vuex命名冲突,请勿修改。
*/
*/
...
...
src/store/modules/errorLog.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 异常捕获的状态拦截,请勿修改
* @description 异常捕获的状态拦截,请勿修改
*/
*/
...
...
src/store/modules/routes.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 路由拦截状态管理,目前两种模式:all模式与intelligence模式,其中partialRoutes是菜单暂未使用
* @description 路由拦截状态管理,目前两种模式:all模式与intelligence模式,其中partialRoutes是菜单暂未使用
*/
*/
import
{
asyncRoutes
,
constantRoutes
}
from
"@/router"
;
import
{
asyncRoutes
,
constantRoutes
}
from
"@/router"
;
...
...
src/store/modules/settings.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 所有全局配置的状态管理,如无必要请勿修改
* @description 所有全局配置的状态管理,如无必要请勿修改
*/
*/
...
...
src/store/modules/table.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 代码生成机状态管理
* @description 代码生成机状态管理
*/
*/
...
...
src/store/modules/tabsBar.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description tabsBar多标签页逻辑,前期借鉴了很多开源项目发现都有个共同的特点很繁琐并不符合框架设计的初衷,后来在github用户cyea的启发下完成了重构,请勿修改
* @description tabsBar多标签页逻辑,前期借鉴了很多开源项目发现都有个共同的特点很繁琐并不符合框架设计的初衷,后来在github用户cyea的启发下完成了重构,请勿修改
*/
*/
...
...
src/store/modules/user.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 登录、获取用户信息、退出登录、清除accessToken逻辑,不建议修改
* @description 登录、获取用户信息、退出登录、清除accessToken逻辑,不建议修改
*/
*/
...
...
src/styles/loading.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 全局加载动画
* @description 全局加载动画
*/
*/
...
...
src/styles/themes/dark.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 暗黑之子主题(VIP群专享)
* @description 暗黑之子主题(VIP群专享)
*/
*/
@charset
"utf-8"
;
@charset
"utf-8"
;
...
...
src/styles/themes/glory.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 荣耀典藏主题(VIP群专享)
* @description 荣耀典藏主题(VIP群专享)
*/
*/
@charset
"utf-8"
;
@charset
"utf-8"
;
...
...
src/styles/themes/green.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 绿荫操场主题(VIP群专享)
* @description 绿荫操场主题(VIP群专享)
*/
*/
@charset
"utf-8"
;
@charset
"utf-8"
;
...
...
src/styles/themes/ocean.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 海洋之心主题(VIP群专享)
* @description 海洋之心主题(VIP群专享)
*/
*/
@charset
"utf-8"
;
@charset
"utf-8"
;
...
...
src/styles/transition.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description vue过渡动画
* @description vue过渡动画
*/
*/
...
...
src/styles/vab.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 全局样式
* @description 全局样式
*/
*/
...
...
src/styles/variables.scss
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 全局主题变量配置,VIP文档内提供多种好看的配色方案(ant-design风格、layui风格、iview风格),请查看VIP文档主题配置篇
* @description 全局主题变量配置,VIP文档内提供多种好看的配色方案(ant-design风格、layui风格、iview风格),请查看VIP文档主题配置篇
*/
*/
/* stylelint-disable */
/* stylelint-disable */
...
...
src/utils/accessToken.js
View file @
618a9983
...
@@ -2,7 +2,7 @@ import { storage, tokenTableName } from "@/config/settings";
...
@@ -2,7 +2,7 @@ import { storage, tokenTableName } from "@/config/settings";
import
cookie
from
"js-cookie"
;
import
cookie
from
"js-cookie"
;
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 获取accessToken
* @description 获取accessToken
* @returns {string|ActiveX.IXMLDOMNode|Promise<any>|any|IDBRequest<any>|MediaKeyStatus|FormDataEntryValue|Function|Promise<Credential | null>}
* @returns {string|ActiveX.IXMLDOMNode|Promise<any>|any|IDBRequest<any>|MediaKeyStatus|FormDataEntryValue|Function|Promise<Credential | null>}
*/
*/
...
@@ -23,7 +23,7 @@ export function getAccessToken() {
...
@@ -23,7 +23,7 @@ export function getAccessToken() {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 存储accessToken
* @description 存储accessToken
* @param accessToken
* @param accessToken
* @returns {void|*}
* @returns {void|*}
...
@@ -45,7 +45,7 @@ export function setAccessToken(accessToken) {
...
@@ -45,7 +45,7 @@ export function setAccessToken(accessToken) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 移除accessToken
* @description 移除accessToken
* @returns {void|Promise<void>}
* @returns {void|Promise<void>}
*/
*/
...
...
src/utils/clipboard.js
View file @
618a9983
...
@@ -10,7 +10,7 @@ function clipboardError() {
...
@@ -10,7 +10,7 @@ function clipboardError() {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 复制数据
* @description 复制数据
* @param text
* @param text
* @param event
* @param event
...
...
src/utils/encrypt.js
View file @
618a9983
...
@@ -5,7 +5,7 @@ const privateKey =
...
@@ -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="
;
"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加密
* @description RSA加密
* @param data
* @param data
* @returns {Promise<{param: PromiseLike<ArrayBuffer>}|*>}
* @returns {Promise<{param: PromiseLike<ArrayBuffer>}|*>}
...
@@ -31,7 +31,7 @@ export async function encryptedData(data) {
...
@@ -31,7 +31,7 @@ export async function encryptedData(data) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description RSA解密
* @description RSA解密
* @param data
* @param data
* @returns {PromiseLike<ArrayBuffer>}
* @returns {PromiseLike<ArrayBuffer>}
...
...
src/utils/handleRoutes.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description all模式渲染后端返回路由
* @description all模式渲染后端返回路由
* @param constantRoutes
* @param constantRoutes
* @returns {*}
* @returns {*}
...
@@ -27,7 +27,7 @@ export function convertRouter(asyncRoutes) {
...
@@ -27,7 +27,7 @@ export function convertRouter(asyncRoutes) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断当前路由是否包含权限
* @description 判断当前路由是否包含权限
* @param permissions
* @param permissions
* @param route
* @param route
...
@@ -42,7 +42,7 @@ function hasPermission(permissions, route) {
...
@@ -42,7 +42,7 @@ function hasPermission(permissions, route) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description intelligence模式根据permissions数组拦截路由
* @description intelligence模式根据permissions数组拦截路由
* @param routes
* @param routes
* @param permissions
* @param permissions
...
...
src/utils/index.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 格式化时间
* @description 格式化时间
* @param time
* @param time
* @param cFormat
* @param cFormat
...
@@ -45,7 +45,7 @@ export function parseTime(time, cFormat) {
...
@@ -45,7 +45,7 @@ export function parseTime(time, cFormat) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 格式化时间
* @description 格式化时间
* @param time
* @param time
* @param option
* @param option
...
@@ -90,7 +90,7 @@ export function formatTime(time, option) {
...
@@ -90,7 +90,7 @@ export function formatTime(time, option) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 将url请求参数转为json格式
* @description 将url请求参数转为json格式
* @param url
* @param url
* @returns {{}|any}
* @returns {{}|any}
...
@@ -112,7 +112,7 @@ export function paramObj(url) {
...
@@ -112,7 +112,7 @@ export function paramObj(url) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 父子关系的数组转换成树形结构数据
* @description 父子关系的数组转换成树形结构数据
* @param data
* @param data
* @returns {*}
* @returns {*}
...
@@ -143,7 +143,7 @@ export function translateDataToTree(data) {
...
@@ -143,7 +143,7 @@ export function translateDataToTree(data) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 树形结构数据转换成父子关系的数组
* @description 树形结构数据转换成父子关系的数组
* @param data
* @param data
* @returns {[]}
* @returns {[]}
...
@@ -170,7 +170,7 @@ export function translateTreeToData(data) {
...
@@ -170,7 +170,7 @@ export function translateTreeToData(data) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 10位时间戳转换
* @description 10位时间戳转换
* @param time
* @param time
* @returns {string}
* @returns {string}
...
@@ -192,7 +192,7 @@ export function tenBitTimestamp(time) {
...
@@ -192,7 +192,7 @@ export function tenBitTimestamp(time) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 13位时间戳转换
* @description 13位时间戳转换
* @param time
* @param time
* @returns {string}
* @returns {string}
...
@@ -214,7 +214,7 @@ export function thirteenBitTimestamp(time) {
...
@@ -214,7 +214,7 @@ export function thirteenBitTimestamp(time) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 获取随机id
* @description 获取随机id
* @param length
* @param length
* @returns {string}
* @returns {string}
...
@@ -229,7 +229,7 @@ export function uuid(length = 32) {
...
@@ -229,7 +229,7 @@ export function uuid(length = 32) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description m到n的随机数
* @description m到n的随机数
* @param m
* @param m
* @param n
* @param n
...
@@ -240,7 +240,7 @@ export function random(m, n) {
...
@@ -240,7 +240,7 @@ export function random(m, n) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description addEventListener
* @description addEventListener
* @type {function(...[*]=)}
* @type {function(...[*]=)}
*/
*/
...
@@ -253,7 +253,7 @@ export const on = (function () {
...
@@ -253,7 +253,7 @@ export const on = (function () {
})();
})();
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description removeEventListener
* @description removeEventListener
* @type {function(...[*]=)}
* @type {function(...[*]=)}
*/
*/
...
...
src/utils/pageTitle.js
View file @
618a9983
import
{
title
}
from
"@/config/settings"
;
import
{
title
}
from
"@/config/settings"
;
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 设置标题
* @description 设置标题
* @param pageTitle
* @param pageTitle
* @returns {string}
* @returns {string}
...
...
src/utils/permission.js
View file @
618a9983
import
store
from
"@/store"
;
import
store
from
"@/store"
;
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 检查权限
* @description 检查权限
* @param value
* @param value
* @returns {boolean}
* @returns {boolean}
...
...
src/utils/request.js
View file @
618a9983
...
@@ -19,7 +19,7 @@ import { isArray } from "@/utils/validate";
...
@@ -19,7 +19,7 @@ import { isArray } from "@/utils/validate";
let
loadingInstance
;
let
loadingInstance
;
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断当前url是否需要加loading
* @description 判断当前url是否需要加loading
* @param {*} config
* @param {*} config
* @returns
* @returns
...
@@ -35,7 +35,7 @@ const needLoading = (config) => {
...
@@ -35,7 +35,7 @@ const needLoading = (config) => {
};
};
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 处理code异常
* @description 处理code异常
* @param {*} code
* @param {*} code
* @param {*} msg
* @param {*} msg
...
...
src/utils/validate.js
View file @
618a9983
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判读是否为外链
* @description 判读是否为外链
* @param path
* @param path
* @returns {boolean}
* @returns {boolean}
...
@@ -9,7 +9,7 @@ export function isExternal(path) {
...
@@ -9,7 +9,7 @@ export function isExternal(path) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 校验密码是否小于6位
* @description 校验密码是否小于6位
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -19,7 +19,7 @@ export function isPassword(str) {
...
@@ -19,7 +19,7 @@ export function isPassword(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否为数字
* @description 判断是否为数字
* @param value
* @param value
* @returns {boolean}
* @returns {boolean}
...
@@ -30,7 +30,7 @@ export function isNumber(value) {
...
@@ -30,7 +30,7 @@ export function isNumber(value) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是名称
* @description 判断是否是名称
* @param value
* @param value
* @returns {boolean}
* @returns {boolean}
...
@@ -41,7 +41,7 @@ export function isName(value) {
...
@@ -41,7 +41,7 @@ export function isName(value) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否为IP
* @description 判断是否为IP
* @param ip
* @param ip
* @returns {boolean}
* @returns {boolean}
...
@@ -52,7 +52,7 @@ export function isIP(ip) {
...
@@ -52,7 +52,7 @@ export function isIP(ip) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是传统网站
* @description 判断是否是传统网站
* @param url
* @param url
* @returns {boolean}
* @returns {boolean}
...
@@ -63,7 +63,7 @@ export function isUrl(url) {
...
@@ -63,7 +63,7 @@ export function isUrl(url) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是小写字母
* @description 判断是否是小写字母
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -74,7 +74,7 @@ export function isLowerCase(str) {
...
@@ -74,7 +74,7 @@ export function isLowerCase(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是大写字母
* @description 判断是否是大写字母
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -85,7 +85,7 @@ export function isUpperCase(str) {
...
@@ -85,7 +85,7 @@ export function isUpperCase(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是大写字母开头
* @description 判断是否是大写字母开头
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -96,7 +96,7 @@ export function isAlphabets(str) {
...
@@ -96,7 +96,7 @@ export function isAlphabets(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是字符串
* @description 判断是否是字符串
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -106,7 +106,7 @@ export function isString(str) {
...
@@ -106,7 +106,7 @@ export function isString(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是数组
* @description 判断是否是数组
* @param arg
* @param arg
* @returns {arg is any[]|boolean}
* @returns {arg is any[]|boolean}
...
@@ -119,7 +119,7 @@ export function isArray(arg) {
...
@@ -119,7 +119,7 @@ export function isArray(arg) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是端口号
* @description 判断是否是端口号
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -130,7 +130,7 @@ export function isPort(str) {
...
@@ -130,7 +130,7 @@ export function isPort(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是手机号
* @description 判断是否是手机号
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -141,7 +141,7 @@ export function isPhone(str) {
...
@@ -141,7 +141,7 @@ export function isPhone(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是身份证号(第二代)
* @description 判断是否是身份证号(第二代)
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -152,7 +152,7 @@ export function isIdCard(str) {
...
@@ -152,7 +152,7 @@ export function isIdCard(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否是邮箱
* @description 判断是否是邮箱
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -163,7 +163,7 @@ export function isEmail(str) {
...
@@ -163,7 +163,7 @@ export function isEmail(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否中文
* @description 判断是否中文
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -174,7 +174,7 @@ export function isChina(str) {
...
@@ -174,7 +174,7 @@ export function isChina(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否为空
* @description 判断是否为空
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -190,7 +190,7 @@ export function isBlank(str) {
...
@@ -190,7 +190,7 @@ export function isBlank(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否为固话
* @description 判断是否为固话
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -201,7 +201,7 @@ export function isTel(str) {
...
@@ -201,7 +201,7 @@ export function isTel(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description 判断是否为数字且最多两位小数
* @description 判断是否为数字且最多两位小数
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -212,7 +212,7 @@ export function isNum(str) {
...
@@ -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位小数)
* @description 判断经度 -180.0~+180.0(整数部分为0~180,必须输入1到5位小数)
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -223,7 +223,7 @@ export function isLongitude(str) {
...
@@ -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位小数)
* @description 判断纬度 -90.0~+90.0(整数部分为0~90,必须输入1到5位小数)
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
@@ -234,7 +234,7 @@ export function isLatitude(str) {
...
@@ -234,7 +234,7 @@ export function isLatitude(str) {
}
}
/**
/**
* @
copyright chuzhixin 1204505056@qq.com
* @
author chuzhixin 1204505056@qq.com (不想保留author可删除)
* @description rtsp校验,只要有rtsp://
* @description rtsp校验,只要有rtsp://
* @param str
* @param str
* @returns {boolean}
* @returns {boolean}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment