File tree Expand file tree Collapse file tree 3 files changed +31
-30
lines changed Expand file tree Collapse file tree 3 files changed +31
-30
lines changed Original file line number Diff line number Diff line change 1
- .DS_Store
2
- node_modules
3
- /dist
4
-
5
- # local env files
6
- .env.local
7
- .env. * .local
8
-
9
- # Log files
10
- npm-debug.log *
11
- yarn-debug.log *
12
- yarn-error.log *
13
-
14
- # Editor directories and files
15
- .idea
16
- .vscode
17
- * .suo
18
- * .ntvs *
19
- * .njsproj
20
- * .sln
21
- * .sw ?
1
+ .DS_Store
2
+ node_modules
3
+ /dist
4
+
5
+ # local env files
6
+ .env.local
7
+ .env. * .local
8
+
9
+ # Log files
10
+ npm-debug.log *
11
+ yarn-debug.log *
12
+ yarn-error.log *
13
+
14
+ # Editor directories and files
15
+ .idea
16
+ .vscode
17
+ * .suo
18
+ * .ntvs *
19
+ * .njsproj
20
+ * .sln
21
+ * .sw ?
22
+ .history
Original file line number Diff line number Diff line change @@ -80,21 +80,21 @@ export default {
80
80
components: {},
81
81
setup () {
82
82
const instance = getCurrentInstance ()
83
- const { proxy } = instance .appContext .config .globalProperties
84
- proxy . ls .set (' foo' , ' boo' );
83
+ const { ls } = instance .appContext .config .globalProperties
84
+ ls .set (' foo' , ' boo' );
85
85
// Set expire for item
86
- proxy . ls .set (' foo' , ' boo' , 60 * 60 * 1000 ); // expiry 1 hour
87
- proxy . ls .get (' foo' );
88
- proxy . ls .get (' boo' , 10 ); // if not set boo returned default 10
86
+ ls .set (' foo' , ' boo' , 60 * 60 * 1000 ); // expiry 1 hour
87
+ ls .get (' foo' );
88
+ ls .get (' boo' , 10 ); // if not set boo returned default 10
89
89
90
90
let callback = (val , oldVal , uri ) => {
91
91
console .log (' localStorage change' , val);
92
92
}
93
93
94
- proxy . ls .on (' foo' , callback) // watch change foo key and triggered callback
95
- proxy . ls .off (' foo' , callback) // unwatch
94
+ ls .on (' foo' , callback) // watch change foo key and triggered callback
95
+ ls .off (' foo' , callback) // unwatch
96
96
97
- proxy . ls .remove (' foo' );
97
+ ls .remove (' foo' );
98
98
return {}
99
99
},
100
100
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-lsp" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"scripts" : {
5
5
"dev" : " vite" ,
6
6
"build-lib" : " vite build -c vite.lib.config.js" ,
You can’t perform that action at this time.
0 commit comments