Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
standalone-anyremote
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qlintonger xeno
standalone-anyremote
Commits
c6ac972e
Commit
c6ac972e
authored
May 06, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除ts错误
parent
16ee311e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
2 deletions
+6
-2
src/api/alova-instance.ts
+1
-0
src/utils/asyncHandle/fetchCommonFuncIn.ts
+0
-2
src/utils/dataTypes/dateRelated/formatDate.ts
+2
-0
src/views/login/index.vue
+2
-0
src/views/remote/videoCall/videoChat.vue
+1
-0
No files found.
src/api/alova-instance.ts
View file @
c6ac972e
...
@@ -38,6 +38,7 @@ export const alova = createAlova({
...
@@ -38,6 +38,7 @@ export const alova = createAlova({
appStore
.
count
++
appStore
.
count
++
}
}
// 设置请求头application/json;charset=UTF-8
// 设置请求头application/json;charset=UTF-8
// @ts-ignore
const
isUpload
=
method
.
config
?.
meta
?.
isUpload
const
isUpload
=
method
.
config
?.
meta
?.
isUpload
console
.
log
(
'the upload here'
,
isUpload
,
method
)
console
.
log
(
'the upload here'
,
isUpload
,
method
)
if
(
isUpload
&&
method
.
data
)
{
if
(
isUpload
&&
method
.
data
)
{
...
...
src/utils/asyncHandle/fetchCommonFuncIn.ts
View file @
c6ac972e
import
{
Ref
}
from
"vue"
;
import
{
Ref
}
from
"vue"
;
import
{
displayError
}
from
"../../components/Global/MessagePrompt/functionals/triggerMessagePrompt"
;
export
async
function
fetchCommonFuncSimplified
(
export
async
function
fetchCommonFuncSimplified
(
f
:
Function
,
f
:
Function
,
...
@@ -22,7 +21,6 @@ export async function fetchCommonFuncSimplified(
...
@@ -22,7 +21,6 @@ export async function fetchCommonFuncSimplified(
}
}
}
catch
(
e
:
any
)
{
}
catch
(
e
:
any
)
{
console
.
log
(
'error in fetch'
,
e
);
console
.
log
(
'error in fetch'
,
e
);
displayError
(
`处理
${
txt
}
失败,错误信息:
${
e
.
message
}
`
);
}
finally
{
}
finally
{
if
(
loaderRef
)
{
if
(
loaderRef
)
{
loaderRef
.
value
=
false
loaderRef
.
value
=
false
...
...
src/utils/dataTypes/dateRelated/formatDate.ts
View file @
c6ac972e
...
@@ -10,6 +10,7 @@ export const formatDate = (
...
@@ -10,6 +10,7 @@ export const formatDate = (
until
=
"all"
,
until
=
"all"
,
defaultVal
:
string
=
'--'
defaultVal
:
string
=
'--'
):
string
=>
{
):
string
=>
{
// @ts-ignore
if
(
input
===
null
||
input
===
0
||
input
<
0
)
return
defaultVal
;
if
(
input
===
null
||
input
===
0
||
input
<
0
)
return
defaultVal
;
const
date
=
new
Date
(
input
);
const
date
=
new
Date
(
input
);
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
...
@@ -48,6 +49,7 @@ export const formatDateZh = (
...
@@ -48,6 +49,7 @@ export const formatDateZh = (
until
=
"all"
,
until
=
"all"
,
defaultVal
:
string
=
'--'
defaultVal
:
string
=
'--'
):
string
=>
{
):
string
=>
{
// @ts-ignore
if
(
input
===
null
||
input
===
0
||
input
<
0
)
return
defaultVal
;
if
(
input
===
null
||
input
===
0
||
input
<
0
)
return
defaultVal
;
const
date
=
new
Date
(
input
);
const
date
=
new
Date
(
input
);
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
...
...
src/views/login/index.vue
View file @
c6ac972e
...
@@ -57,6 +57,7 @@ const {
...
@@ -57,6 +57,7 @@ const {
}
=
useRequest
(
}
=
useRequest
(
()
=>
()
=>
alova
.
Post
<
any
>
(
'/admin/login'
,
loginForm
,
{
alova
.
Post
<
any
>
(
'/admin/login'
,
loginForm
,
{
// @ts-ignore
meta
:
{
meta
:
{
loading
:
'登陆中...'
loading
:
'登陆中...'
}
}
...
@@ -92,6 +93,7 @@ const getCaptcha = async () => {
...
@@ -92,6 +93,7 @@ const getCaptcha = async () => {
'/admin/getCaptcha'
,
'/admin/getCaptcha'
,
{
username
:
loginForm
.
username
},
{
username
:
loginForm
.
username
},
{
{
// @ts-ignore
meta
:
{
meta
:
{
blob
:
true
blob
:
true
}
}
...
...
src/views/remote/videoCall/videoChat.vue
View file @
c6ac972e
...
@@ -93,6 +93,7 @@ const uploadMuFile = (option: any, type: string) => {
...
@@ -93,6 +93,7 @@ const uploadMuFile = (option: any, type: string) => {
uid
:
4
uid
:
4
}
}
return
alova
return
alova
// @ts-ignore
.
Post
<
any
>
(
'/admin/uploadMuFile'
,
params
,
{
meta
:
{
isUpload
:
true
}
})
.
Post
<
any
>
(
'/admin/uploadMuFile'
,
params
,
{
meta
:
{
isUpload
:
true
}
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
...
...
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