zmc
2023-09-05 c2f95b0b9090a2394b5b068582b932a5e57b86aa
src/views/login/LoginSystem.vue
@@ -31,6 +31,7 @@
</template>
<script lang="ts">
import Cookie from 'js-cookie'
export default {
  data() {
    return {
@@ -43,6 +44,8 @@
      // 登录逻辑
      if (this.username === 'admin' && this.password === 'admin123') {
         ElMessage.success('登录成功');
         const token = 'abc'
         Cookie.set('token',token)
          // 登录成功,跳转到对应页面
          this.$router.push('/edata') // 假设登录成功后跳转到 '/dashboard' 页面
        } else {