Code Monkey home page Code Monkey logo

vue3-admin's Issues

【bug】admin登录后没有带token

// 携带 cookie,对目前的项目没有什么作用,因为我们是 token 鉴权
axios.defaults.withCredentials = true
// 请求头,headers 信息
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
axios.defaults.headers['token'] = localGet('token') || ''
// 默认 post 请求,使用 application/json 形式
axios.defaults.headers.post['Content-Type'] = 'application/json'

第14行token不是响应式的,所以登录以后axios拦截器的token不会更新

Security concern

Hey there!

I belong to an open source security research community, and a member (@L0ading-x) has found an issue, but doesn’t know the best way to disclose it.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

验证问题

很多新增界面一进去就自动校验了,还有就是搜索查询框应该封装兼容响应式,接下来就是列表的图片不支持查看,加载也比较慢

是否展示左侧菜单的判断有 bug

这里 判断是否展示左侧菜单,在路由的 beforeEach 里边,感觉元素不止一项,会重复设定。而且,登录成功后退出,再点后退,这时会展示登录页面 + 左侧菜单。

Failed to resolve import "element-plus/lib/theme-chalk/el-input-number.css" when upgrade element-plus to 1.2.0

  • Error when run yarn dev
10:16:57 AM [vite] Internal server error: Failed to resolve import "element-plus/lib/theme-chalk/el-input-number.css" from "src/main.js". Does the file exist?
  Plugin: vite:import-analysis
  File: /Users/Desktop/vue3-admin/src/main.js
  1  |  import "element-plus/lib/theme-chalk/el-input-number.css";
     |          ^
  2  |  import "element-plus/lib/theme-chalk/el-checkbox.css";
  3  |  import "element-plus/lib/theme-chalk/el-cascader.css";
      at formatError (/Users/anhtuannguyen/Desktop/vue3-admin/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:42189:46)
      at TransformContext.error (/Users/anhtuannguyen/Desktop/vue3-admin/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:42185:19)
      at normalizeUrl (/Users/anhtuannguyen/Desktop/vue3-admin/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:67284:26)
      at async TransformContext.transform (/Users/anhtuannguyen/Desktop/vue3-admin/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:67424:57)
      at async Object.transform (/Users/anhtuannguyen/Desktop/vue3-admin/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:42396:30)
      at async doTransform (/Users/anhtuannguyen/Desktop/vue3-admin/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:56801:29) (x2)
  • Packages.json after upgrade
{
  "dependencies": {
    "axios": "^0.24.0",
    "element-plus": "^1.2.0-beta.3",
    "js-md5": "^0.7.3",
    "vue": "^3.2.22",
    "vue-router": "^4.0.4"
  },
  "devDependencies": {
    "@babel/core": "^7.16.0",
    "@babel/runtime": "^7.16.3",
    "@rollup/plugin-babel": "^5.3.0",
    "@vitejs/plugin-vue": "^1.9.4",
    "@vue/compiler-sfc": "^3.2.22",
    "babel": "^6.23.0",
    "babel-plugin-component": "^1.1.1",
    "babel-plugin-import": "^1.13.3",
    "element-theme-chalk": "^2.15.6",
    "vite": "^2.6.14",
    "vite-babel-plugin": "^0.0.2",
    "vite-plugin-babel-import": "^2.0.5",
    "vite-plugin-imp": "^2.0.10"
  }
}

  • Packages.json changed

Screen Shot 2021-11-19 at 10 24 16

登陆失败500

{"resultCode":500,"message":"登录失败!","data":null}

项目启动的话,还需要启动后端服务吗?

问几个问题

image
没有排序功能吗 字段没有箭头?
表格上面没有搜索功能?

添加和编辑表单字段必须都一样吗

表单验证

添加商品页面,所有的表单验证都是通过行内添加required实现的,这样的话数据里面自定义的rule就无效了,是故意这么设计的吗?
其次 ,在 我们之前的项目中,rule可以设置成非响应式,它会自动通过trigger触发

vite.config.js中proxy未生效

请问yarn run dev启动后,首页登录接口没有被代理到后台路径和端口上,是怎么回事呢?端口和路径没有改为代理的后台路径
image
image
image

能否把所有依赖升级到最新版

最近准备尝试使用这个基于vue3系列的admin模板,
但是我把所有依赖修改版本号更新至最新版本以后,启动时发现有些地方的引用不兼容。
官方能否帮忙将所有依赖升级至最新版?

权限模块设计

类似vue-element-admin的权限模块没做吗?本来买了小册才发现没有,代码好像也没有,这块觉得更需要一些

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.