forked from pig-mesh/pig-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
15 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* this software without specific prior written permission. | ||
* Author: lengleng ([email protected]) | ||
*/ | ||
import { isExsit } from '@/api/admin/user' | ||
import { isExist } from '@/api/admin/user' | ||
|
||
export const validateUsername = (rule, value, callback) => { | ||
if (!value) { | ||
|
@@ -24,7 +24,7 @@ export const validateUsername = (rule, value, callback) => { | |
if (!flag) { | ||
callback(new Error('用户名支持小写英文、数字')) | ||
} | ||
isExsit({ username: value }).then(response => { | ||
isExist({ username: value }).then(response => { | ||
if (window.boxType === 'edit') callback() | ||
const result = response.data.data | ||
if (result) { | ||
|
@@ -60,7 +60,7 @@ export const checkPhone = (rule, value, callback) => { | |
} | ||
} | ||
|
||
isExsit({ phone: value }).then(response => { | ||
isExist({ phone: value }).then(response => { | ||
if (window.boxType === 'edit') callback() | ||
const result = response.data.data | ||
if (result) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters