问题遇到的现象和发生背景
从github中扒了一个前后端分离vue+springboot项目,登录时控制台报错
TypeError: uuidv5 is not a function
at eval (Login.vue?7463:169)
问题相关代码,请勿粘贴截图
const uuidv5 = require('uuid/v5');
const token = uuidv5('zj', uuidv5.DNS);
从github中扒了一个前后端分离vue+springboot项目,登录时控制台报错
TypeError: uuidv5 is not a function
at eval (Login.vue?7463:169)
const uuidv5 = require('uuid/v5');
const token = uuidv5('zj', uuidv5.DNS);
require('uuid/v5');没有导入成功
你输出 uuidv5 看看