This commit is contained in:
@@ -78,7 +78,7 @@ async function handleDebug() {
|
|||||||
>
|
>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<n-button quaternary type="primary" @click="copy">复制</n-button>
|
<n-button quaternary type="primary" @click="copy">复制</n-button>
|
||||||
<n-button quaternary @click="handleFormat">整理代码</n-button>
|
<n-button quaternary @click="handleFormat">整理</n-button>
|
||||||
<n-button quaternary @click="reset">清空</n-button>
|
<n-button quaternary @click="reset">清空</n-button>
|
||||||
<n-button
|
<n-button
|
||||||
v-if="code.language === 'python'"
|
v-if="code.language === 'python'"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
const cSource =
|
const cSource =
|
||||||
"#include<stdio.h>\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}"
|
"#include <stdio.h>\r\n\r\nint main() {\r\n \r\n return 0;\r\n}"
|
||||||
const cppSource =
|
const cppSource =
|
||||||
"#include<iostream>\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}"
|
"#include <iostream>\r\n\r\nusing namespace std;\r\n\r\nint main() {\r\n \r\n return 0;\r\n}"
|
||||||
const pythonSource = ""
|
const pythonSource = ""
|
||||||
const javaSource =
|
const javaSource =
|
||||||
"public class Main {\r\n public static void main(String[] args) {\r\n \r\n }\r\n}"
|
"public class Main {\r\n public static void main(String[] args) {\r\n \r\n }\r\n}"
|
||||||
|
|||||||
Reference in New Issue
Block a user