md5.js 435 B

12345678910111213141516171819202122
  1. var timestamp = Date.now();
  2. // 将时间戳转换成10位数的时间戳(秒级)
  3. var tenDigitTimestamp = Math.floor(timestamp / 1000);
  4. console.log(tenDigitTimestamp); // 输出10位数的时间戳
  5. let state = {
  6. Timestamp: tenDigitTimestamp, //过期时间
  7. AUTH_TOKEN:"e4c548d3a78b0e0247be267f1a8359cd"//鉴权秘钥
  8. }
  9. let mutations = {
  10. }
  11. let getters = {
  12. }
  13. export default {
  14. namespaced: true,
  15. state,
  16. mutations,
  17. getters
  18. }