]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: syntax error of import statement (#1989)
authorBrandon Dash <61053131+Debbl@users.noreply.github.com>
Thu, 9 Feb 2023 16:07:36 +0000 (00:07 +0800)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 16:07:36 +0000 (17:07 +0100)
packages/docs/core-concepts/actions.md
packages/docs/zh/core-concepts/actions.md

index a68ee33820ab4685cb508dfa9d1174cb4cfa9784..3ba5cb5dfa388ac6fbc31c6ee82c4b1e774bcc6d 100644 (file)
@@ -120,7 +120,7 @@ For the following examples, you can assume the following store was created:
 // Example File Path:
 // ./src/stores/counter.js
 
-import { defineStore } from 'pinia',
+import { defineStore } from 'pinia'
 
 export const useCounterStore = defineStore('counter', {
   state: () => ({
index 3acbb9c3608fe508c5c67bee61d737c792e8f190..790a22755e8103724e60adc36344c3c2ef210207 100644 (file)
@@ -119,7 +119,7 @@ export default {
 // 示例文件路径:
 // ./src/stores/counter.js
 
-import { defineStore } from 'pinia',
+import { defineStore } from 'pinia'
 
 const useCounterStore = defineStore('counter', {
   state: () => ({