提交 a821cfca authored 作者: 王鹏飞's avatar 王鹏飞

fix: 选项支持26英文字母

上级 7cf7a205
...@@ -159,35 +159,15 @@ import Base64 from 'Base64' ...@@ -159,35 +159,15 @@ import Base64 from 'Base64'
import VEditor from '@/components/editor.vue' import VEditor from '@/components/editor.vue'
var getLetter = val => { const A_Z = (function() {
switch (val) { const result = []
case 0: for (let i = 0; i < 26; i++) {
return 'A' result.push(String.fromCharCode(65 + i))
case 1:
return 'B'
case 2:
return 'C'
case 3:
return 'D'
case 4:
return 'E'
case 5:
return 'F'
case 6:
return 'G'
case 7:
return 'H'
case 8:
return 'I'
case 9:
return 'J'
case 10:
return 'K'
case 11:
return 'L'
case 12:
return 'M'
} }
return result
})()
var getLetter = val => {
return A_Z[val]
} }
export default { export default {
......
...@@ -183,35 +183,16 @@ import Base64 from 'Base64' ...@@ -183,35 +183,16 @@ import Base64 from 'Base64'
import VEditor from '@/components/editor.vue' import VEditor from '@/components/editor.vue'
var getLetter = val => { const A_Z = (function() {
switch (val) { const result = []
case 0: for (let i = 0; i < 26; i++) {
return 'A' result.push(String.fromCharCode(65 + i))
case 1:
return 'B'
case 2:
return 'C'
case 3:
return 'D'
case 4:
return 'E'
case 5:
return 'F'
case 6:
return 'G'
case 7:
return 'H'
case 8:
return 'I'
case 9:
return 'J'
case 10:
return 'K'
case 11:
return 'L'
case 12:
return 'M'
} }
return result
})()
var getLetter = val => {
console.log(val)
return A_Z[val]
} }
export default { export default {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论