Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuan Zhixiang
c-render-vue
Commits
2661d45f
Commit
2661d45f
authored
Apr 13, 2024
by
Yuan Zhixiang
Browse files
修复了error: stray ‘\\302’‘\\240’ in program
parent
16876e0c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/App.vue
View file @
2661d45f
...
@@ -13,9 +13,11 @@ const code_input = ref('') // 用户输入的代码
...
@@ -13,9 +13,11 @@ const code_input = ref('') // 用户输入的代码
const
stdin_input
=
ref
(
''
)
// 用户输入的测试用例
const
stdin_input
=
ref
(
''
)
// 用户输入的测试用例
function
send_request
()
{
// 将输入的代码/测试用例发送给后端
function
send_request
()
{
// 将输入的代码/测试用例发送给后端
data
.
value
=
{}
data
.
value
=
{}
let
code
=
code_input
.
value
code
=
code
.
replace
(
/ /g
,
'
'
)
if
(
stdin_input
.
value
.
length
==
0
)
{
if
(
stdin_input
.
value
.
length
==
0
)
{
axios
.
post
(
base_url
+
'
/visualize
'
,
{
axios
.
post
(
base_url
+
'
/visualize
'
,
{
code
:
code
_input
.
value
code
:
code
},
{
},
{
headers
:
{
headers
:
{
'
Content-Type
'
:
'
multipart/form-data
'
'
Content-Type
'
:
'
multipart/form-data
'
...
@@ -30,7 +32,7 @@ function send_request() { // 将输入的代码/测试用例发送给后端
...
@@ -30,7 +32,7 @@ function send_request() { // 将输入的代码/测试用例发送给后端
});
});
}
else
{
}
else
{
axios
.
post
(
base_url
+
'
/visualize
'
,
{
axios
.
post
(
base_url
+
'
/visualize
'
,
{
code
:
code
_input
.
value
,
code
:
code
,
stdin
:
stdin_input
.
value
stdin
:
stdin_input
.
value
},
{
},
{
headers
:
{
headers
:
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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