|
@@ -2,7 +2,7 @@
|
|
|
import { createStore } from 'vuex';
|
|
|
import { House, Setting, Help } from '@element-plus/icons-vue';
|
|
|
// import { login } from '../api/modules/home'
|
|
|
-import { Login } from "../../wailsjs/go/main/App"
|
|
|
+import { ServerActionUserLogin } from "../../wailsjs/go/main/App"
|
|
|
import { GetLoginState, PutLoginState } from "../../wailsjs/go/main/App"
|
|
|
|
|
|
const iconComponents = {
|
|
@@ -40,7 +40,10 @@ export default createStore({
|
|
|
actions: {
|
|
|
async login({ commit }, credentials) {
|
|
|
// login(credentials)
|
|
|
- const r = await Login(credentials.username, credentials.password)
|
|
|
+ const r = await ServerActionUserLogin({
|
|
|
+ username: credentials.username,
|
|
|
+ password: credentials.password
|
|
|
+ })
|
|
|
console.log(r)
|
|
|
|
|
|
// console.log("登录信息:",credentials)
|