spwebsite / static /js /store.js
geqintan's picture
update
133609a
raw
history blame contribute delete
550 Bytes
// static/js/store.js
export const appData = () => ({
message: 'Hello Vue 3!',
isLoggedIn: false,
userEmail: '',
});
export const appComputed = {
reversedMessage() {
return this.message.split('').reverse().join('');
}
};
export const appMethods = () => ({
reverseMessage() {
this.message = this.message.split('').reverse().join('');
},
});
export const appMounted = (app) => {
console.log('Vue app mounted!');
app.checkLoginStatus(); // Assuming checkLoginStatus is available in the main app
};