File size: 550 Bytes
133609a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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
};