perf: 清理测试输出

This commit is contained in:
2025-01-02 11:15:39 +08:00
parent 0df937a933
commit 7cbca0ee87
7 changed files with 7 additions and 13 deletions

View File

@@ -67,14 +67,14 @@ export const useUserStore = defineStore({
/** 登入 */
async loginByUsername(data) {
console.info("```````````````````````````````````````````````");
console.info(data);
// console.info(data);
return new Promise<UserResult>((resolve, reject) => {
getLogin(data)
.then(data => {
console.log("loginByUsername");
/* console.log("loginByUsername");
console.log(data.data);
console.log(data.status);
console.log(data);
console.log(data); */
//if (data?.success) setToken(data.data);
// if(data?.status==200) setToken(data.data);
if (data && data.status == 200) {

View File

@@ -124,8 +124,8 @@ export function removeToken() {
/** 格式化tokenjwt格式 */
export const formatToken = (token: string): string => {
console.log("token", token);
console.info("Bearer " + token);
/* console.log("token", token);
console.info("Bearer " + token); */
return "Bearer " + token;
};

View File

@@ -40,7 +40,7 @@ const getRoleList = async () => {
const res = await request(authApi("getRoles"), {
method: "post"
});
console.info(res);
// console.info(res);
if (res.status === 200) {
roleOptions.value = res.data.map(item => ({
value: item.id,
@@ -62,7 +62,6 @@ const getUserList = async () => {
method: "post",
body: JSON.stringify(params)
});
console.log(data);
if (data.status === 200) {
tableData.value = data.data.rows;

View File

@@ -46,7 +46,6 @@ const getCompanyList = async () => {
method: "POST",
body: JSON.stringify(params)
});
console.log(data);
/* tableData.value = data.data.records;
total.value = data.data.total; */

View File

@@ -46,7 +46,6 @@ const getCompanyList = async () => {
const res = await request(authApi("getCompanyPrimaryInfo"), {
method: "post"
});
console.info(res);
if (res.status === 200) {
companyOptions.value = res.data.map(item => ({
value: item.id,
@@ -66,7 +65,7 @@ const getRoleList = async () => {
const res = await request(authApi("getRoles"), {
method: "post"
});
console.info(res);
// console.info(res);
if (res.status === 200) {
roleOptions.value = res.data.map(item => ({
value: item.id,
@@ -87,7 +86,6 @@ const getUserList = async () => {
method: "post",
body: JSON.stringify(params)
});
console.log(data);
if (data.status === 200) {
tableData.value = data.data.rows;

View File

@@ -44,7 +44,6 @@ const getRoleList = async () => {
method: "POST",
body: JSON.stringify(params)
});
console.log(data);
/* tableData.value = data.data.records;
total.value = data.data.total; */

View File

@@ -83,7 +83,6 @@ const getPurchaseSpendList = async () => {
body: JSON.stringify(params)
});
console.log(data);
if (data.status === 200 && data.data != null) {
tableData.value = data.data.rows;
total.value = data.data.records;