+//PREPEND END
+
+//TEMPLATE BEGIN
+int add(int a, int b) {
+ // 请填空
+ return ___________;
+}
+//TEMPLATE END
+
+//APPEND BEGIN
+int main() {
+ std::cout << add(1, 2);
+ return 0;
+}
+//APPEND END`
+
+export const blankTemplate = `//PREPEND BEGIN
+//PREPEND END
+
+//TEMPLATE BEGIN
+//TEMPLATE END
+
+//APPEND BEGIN
+//APPEND END`
diff --git a/src/components.d.ts b/src/components.d.ts
index 6a996ad..3b35dbf 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -56,7 +56,6 @@ declare module '@vue/runtime-core' {
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag']
- NTextarea: typeof import('naive-ui')['NTextarea']
NTooltip: typeof import('naive-ui')['NTooltip']
NUpload: typeof import('naive-ui')['NUpload']
RouterLink: typeof import('vue-router')['RouterLink']
diff --git a/src/learn/index.vue b/src/learn/index.vue
index 56ba46a..feed0c0 100644
--- a/src/learn/index.vue
+++ b/src/learn/index.vue
@@ -32,9 +32,6 @@ watch(
{ immediate: true }
)
-function change(v: string) {
- code.value = v
-}
function prev() {
router.push(`/learn/step-${step.value - 1}`)
}
@@ -59,7 +56,7 @@ function next() {
-
+
@@ -74,7 +71,7 @@ function next() {
-
+