add day14
This commit is contained in:
21
day14/src/main.js
Normal file
21
day14/src/main.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Reactive } from './lib/ReactiveObject'
|
||||
import { getCookie } from './lib/cookieManager';
|
||||
|
||||
export const appState = new Reactive({
|
||||
count: 0,
|
||||
cookie: getCookie('username'),
|
||||
text: '',
|
||||
html: '',
|
||||
year: '',
|
||||
cookiedata: "",
|
||||
});
|
||||
|
||||
let SSR = false;
|
||||
|
||||
export function isSSR() {
|
||||
return SSR;
|
||||
}
|
||||
|
||||
export function setSSR() {
|
||||
SSR = true;
|
||||
}
|
||||
Reference in New Issue
Block a user