<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                正如6.5當中所描述的,我們是單獨放到了一個組件當中,但是這樣不通用,如果想要在其他頁面當中使用類型那還得寫一遍所以我們可以定義個全局的枚舉js用來加載 ### ![](https://img.kancloud.cn/ff/49/ff4998ab4cd86e0e28b832eebd963504_1227x912.png) ### 這次我們是在src/assets/js下編寫的js文件 ### 這樣寫的好處是編譯好之后別人拿不到我們的js數據 ### ![](https://img.kancloud.cn/95/16/95167bdc8ac375be1f0188afbbd24528_1189x927.png) 然后在main.js當中引入即可 ### 然后就可以在組件當中通過window使用了 ![](https://img.kancloud.cn/90/80/9080cb5f580b4f86f7f00c2e6e00e30b_1233x900.png) ### 但是會報錯 所以我們還得需要屏蔽掉錯誤信息 ![](https://img.kancloud.cn/fe/94/fe94bdcd82dc767ba73db6eadd743b4f_1149x882.png) ### 搞定 ### 以后在其他地方也可以訪問使用這個枚舉類的數據了 記得前端的枚舉js里面的數據要和后端枚舉保持一致
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看